Top "Ruby-on-rails-3.1" questions

Ruby on Rails version 3.1.0 is a specific version of Ruby on Rails.

Run migrations from rails console

Is there a way to run rake commands for db:migrate and db:rollback on the console? It sucks to …

ruby-on-rails ruby-on-rails-3.1
SASS, Rails 3.1: Loading stylesheets in vendor/assets

I'm using SASS to load stylesheets in a Rails 3.1(sass-rails 3.1) app. For example, sass partials in app/assets/stylesheets are …

ruby-on-rails-3.1 sass sprockets
ActiveAdmin forms with has_many - belongs_to relationships?

I have the models Home and Photo, which have a has_many - belongs_to relationship (a polymorphic relationship, but …

ruby-on-rails ruby-on-rails-3.1 activeadmin
Rails: Force empty string to NULL in the database

Is there an easy way (i.e. a configuration) to force ActiveRecord to save empty strings as NULL in the …

mysql ruby-on-rails activerecord ruby-on-rails-3.1
what is the difference between link_to, redirect_to, and render?

I am confused about the main difference(s) among link_to, redirect_to and render in Rails. anyone can please …

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.1 ruby-on-rails-3.2
Array Attribute for Ruby Model

Is it possible to create an attribute for a class that is an array? I tried reading this but I …

ruby database-design attributes migration ruby-on-rails-3.1
How do I use Rack::Proxy within Rails to proxy requests to a specific path to another app

I found this great blog post on how to use Rack::Proxy as a separate proxy app. The article explains …

ruby-on-rails-3.1 proxy rack reverse-proxy routes
How to use compass with rails 3.1

I have searched and searched and all I could see was that to use compass with rails 3.1 was to just …

ruby-on-rails-3.1 compass-sass
How to include vendor js in Rails 3.1

I have a js vendor script called Corners.js located in /vendor/assets/javascripts/ How do i include the js …

javascript ruby-on-rails ruby-on-rails-3.1 vendor