Top "Ruby-on-rails-3.2" questions

Ruby on Rails version 3.2.0 released at January 20, 2012.

How to save a model without running callbacks in Rails

I need to calculate values when saving a model in Rails. So I call calculate_averages as a callback for …

ruby-on-rails ruby-on-rails-3 activerecord ruby-on-rails-3.2 rails-activerecord
rails confirm before delete

Here is my rails link_to <%= link_to 'Delete',url_for(action: :delete,id: @user.id),data: {confirm: "Are …

ruby-on-rails ruby-on-rails-3.2 ruby-on-rails-4
Using send_file to download a file from Amazon S3?

I have a download link in my app from which users should be able to download files which are stored …

ruby-on-rails ruby ruby-on-rails-3 amazon-s3 ruby-on-rails-3.2
Adding a custom seed file

I want to populate a new feature with dummy data, but don't want to use the db/seeds.rb file …

ruby-on-rails ruby ruby-on-rails-3.2 rake seed
Rails routes: GET without param :id

I'm developing a REST api based on rails. To use this api, you MUST be logged in. Regarding that, I'd …

ruby-on-rails ruby ruby-on-rails-3.2 routes
Adding parameter to a scope

I have a ActiveRecord query for example like this: @result = stuff.limit(10) where stuff is a active record query with …

ruby-on-rails ruby-on-rails-3.2 rails-activerecord
POSTing raw JSON data with Rails 3.2.11 and RSpec

In order to ensure that my application is not vulnerable to this exploit, I am trying to create a controller …

ruby-on-rails json ruby-on-rails-3.2 rspec2 rspec-rails
Seeding users with Devise in Ruby on Rails

In my development and test environments, I want to seed the database with a bunch of users. I'm using Ruby …

ruby-on-rails ruby-on-rails-3 devise ruby-on-rails-3.2 seed
No 'Access-Control-Allow-Origin' header is present on the requested resource

I am using omniauth-facebook with AngularJS and CORS is not working correctly . My omniauth.rb is Rails.application.config.middleware.…

ruby-on-rails angularjs ruby-on-rails-3.2 omniauth