Top "Ruby-on-rails-3.1" questions

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

What does require_self mean?

In rails3.1 application.css we could see /* *= require_self *= require_tree . */ I know that require_tree . is just telling the …

ruby-on-rails-3.1 sprockets
Rails before_filter for specific actions in controller

def new before_filter do redirect_to "/" unless current_admin || current_company flash[:notice] = 'You dont have enough permissions to …

ruby-on-rails ruby ruby-on-rails-3.1 devise before-filter
skip certain validation method in Model

I am using Rails v2.3 If I have a model: class car < ActiveRecord::Base validate :method_1, :method_2, :method_3 ... # custom …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1
Ruby on Rails 3.1 and jQuery UI images

I'm using Ruby on Rails (Edge, the development version), and Ruby rvm 1.9.2. application.js is as follows. //= require jquery //= require …

jquery-ui ruby-on-rails-3.1
Rails asset pipeline: Standard way for including all /vendor/assets/javascripts/?

I've been transitioning an app to Rails 3.1 (and now on to 3.2) and watched the Railscast on the asset pipeline. I …

ruby-on-rails-3.1 asset-pipeline sprockets
How to make Devise redirect after confirmation

How can I create an after-confirmation redirect in Devise? Before I added the confirmation module the custom after_sign_up_…

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1
ruby on rails how to deal with NaN

I have read few posts regarding NaN but did not figure out how to deal with it in Ruby on …

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.2 ruby-on-rails-3.1
How do I setup/use ruby on rails snippets and autocomplete in sublime text 2?

I would appreciate if someone could direct me to a website that shows how to do this.. Can't seem to …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 code-snippets sublimetext
How to set a field read only in rails 3.1.0 views?

My question is how to set a field in rails form read only. The following is a selection box in …

ruby-on-rails ruby-on-rails-3.1 simple-form
Ruby on rails log file size too large

I stumbled to learn that my rails3.1 log file is super large, around 21mb. Is this, in terms of size …

ruby-on-rails ruby-on-rails-3.1 filesize logging