Questions tagged as 'ruby-on-rails'

2
answers

Jquery does not run on the first page load!

Hello, I have a page where the first loading of Jquery does not run, refreshing the page (refresh, F5) the function written in JQuery works. I'm using JQuery with Ruby On Rails technology. Solutions: Add script at the end of HTM...
asked by 13.06.2017 / 14:32
1
answer

Is Gems from Ruby or On Rails?

I'm starting in Ruby and On Rails. I was a bit confused about "gem", is it part of Ruby or Rails? Example command below. gem install nome gema     
asked by 12.05.2017 / 15:04
1
answer

Overlap background

On my site I have an animation that is a train track and a train that runs along this same track, but now I wanted to overlap with a bottomless image, which would be tunnels, and to be positioned over the train. > This is my site as it is now:...
asked by 19.04.2017 / 10:59
1
answer

Metaprogramming with ruby on rails in a partial

I'm working on a Ruby on Rails project and I'm working on a module (Financial) it's linked to several models, and depending on the screen the user is able to do it bring a screen with all the financial movements of that object. However I wanted...
asked by 10.06.2017 / 22:40
1
answer

Problems setting up route in rails

I'm new to ruby on rails programmer. I ran in the windows console rails generate controller hello then I created the page in the View folder an index.html.erb file, then I configured the route in the routes.erb file creating the following l...
asked by 17.05.2017 / 20:31
1
answer

undefined method 'id' for nil: NilClass

I'm a beginner in ruby, and I had this error ... def new @section = Section.new({:page_id => @page.id, :name => "Default"}) @pages = @page.subject.pages.sorted @section_count = Section.count + 1 end It says the problem...
asked by 28.03.2017 / 10:46
2
answers

open modal with link_to

Well, I've never done it and I've searched a lot of sites and can not find anything that does what I need. I need to make a modal popup appear from a link_to, the person when clicking the link_to opens the modal, thanks.     
asked by 27.04.2017 / 17:35
1
answer

Problem with TinyMCE Rails

I'm creating an application with rails and I've integrated the TinyMCE editor by gem The installation process went smoothly. I tested it on the local server and it worked out the first time. But when I reopen the form the edit area does not...
asked by 13.03.2017 / 21:41
1
answer

Query with select and find in rails

Hello, I wanted to do a find with select from just a few fields in rails, but it is giving error, but if I do with where it works normally, does anyone know if it is possible to use select with find? Ex: @organization = Organization.find(actual...
asked by 07.12.2016 / 11:32
2
answers

Error starting Http server in Ruby

Hello everyone, I'm new to Ruby and I'm trying to create my first project but when I start the server with the command rails server I get this error: João@joao-note MINGW64 ~/Documents/Desenvolvimento/Rails/Primeiro_Projeto/hello (maste...
asked by 13.12.2016 / 21:45