Top "Ruby-on-rails-3" questions

Ruby on Rails is an open-source web development framework written in Ruby.

Using Rails link_to for links that post

I have a link that I need to submit a post request with. Normally, I'd use jQuery and prevent the …

ruby-on-rails ruby-on-rails-3 post ruby-on-rails-3.2 link-to
Rails: Open link in new tab (with 'link_to')

I have this code: <%= link_to image_tag("facebook.png", :class => "facebook_icon", :alt => "Facebook", :target => "_…

ruby-on-rails ruby ruby-on-rails-3
Best way to add page specific JavaScript in a Rails 3 app?

Rails 3 has some unobtrusive JavaScript which is pretty cool. But I was wondering what the best way is to include …

javascript ruby-on-rails ruby-on-rails-3
When to use a "has_many :through" relation in Rails?

I am trying to understand what has_many :through is and when to use it (and how). However, I am …

ruby-on-rails ruby-on-rails-3 activerecord
Rails 3: f.select - options_for_select

I have a form on my Ruby on Rails3 Application with a drop menu, this is my current code for …

ruby-on-rails-3 forms html-select
How do you scope ActiveRecord associations in Rails 3?

I have a Rails 3 project. With Rails 3 came Arel and the ability to reuse one scope to build another. I …

ruby-on-rails activerecord ruby-on-rails-3 named-scope arel
Errno::ECONNREFUSED: Connection refused - connect(2) for action mailer

I have been working with rails since a long. Now I am facing a small issue in the ActionMailer. I …

ruby-on-rails ruby ruby-on-rails-3 actionmailer
Pass a variable into a partial, rails 3?

I have a loop like such: <% @posts.each do |post| %> <% render middle %> <% end %> Then …

ruby-on-rails ruby ruby-on-rails-3
Ruby on Rails Generating Views

Is there a way to generate the views separately using the rails generate command? I would also be willing to …

ruby-on-rails-3 views scaffold
What is the right way to override a setter method in Ruby on Rails?

I am using Ruby on Rails 3.2.2 and I would like to know if the following is a "proper"/"correct"/"sure" …

ruby-on-rails ruby ruby-on-rails-3 overriding setter