I have a model with a method to return a url to a person\'s avatar that looks like this: def avatar_url
On Rails 3.1 RC6, given class Animal < ActiveRecord::Base default_scope where(legs: 4) end The following does not work as expected:
Hey guys I recently installed mysql2 on Windows using this command: gem install mysql2 -v 0.2.7 and added the mysql2 gem to my project\'s gemfile. I then ran bundle install with no problems, but when
rails new example rails g scaffold widget rake db:migrate Edit routes.rb as follows: scope \":year\" do resources :widgets end
I have an issue with background images not showing up in production mode in a Rails 3.1 app (3.1.0.rc8).I\'m also using sprockets 2.0.0 and passenger 3.0.8.
I have a simple form: = form_for(posts_path, :id => \"new_post\", :remote => true) do = text_field_tag \"post[input]\"
I have a simple Rails 3.1.rc6 app that I\'m using to try to test SSL configurations on my tes开发者_运维技巧t server (OS X 10.7 Server). I\'m using Phusion Passenger and Apache.
I\'m trying to add some conditional open graph tags to my app, using current_page, but I\'m getting a routing error:
Rails 3.1 has Template Inheritance feature built in, very nice. But when I tried to use it with unobtrusive javascript, it doesn\'t work.
I got an issue in rails3.1, in the rails console a=User.find_by_name \'castiel\' a.name #output: castiel