Top "Ruby-on-rails-3.2" questions

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

Setting Content-Type header for RSpec and Rails-API

I'm using the rails-api gem to build a web service and want to test my API with RSpec. Every request …

ruby-on-rails rspec ruby-on-rails-3.2 rails-api
Use active_model_serializer with a non-ActiveRecord object

I have a model object that is not descended from ActiveRecord::Base and is not stored in the database. I …

ruby-on-rails-3.2 active-model-serializers
searching records between start date and end dates for ransack

Hi i am using ransack + kalendae_assets gem for searching records in between start date and end date for this …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2 ransack
How can I clear out the Rails flash object after responding to an Ajax request?

I am doing this type of thing for some of my controller actions: def my_method flash[:notice] = "Success." respond_…

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2 rails-flash
Devise Omniauth undefined method omniauth_authorize_path

I've noticed that when logging to Devise I have started to receive these error message. I'm using Devise 2.2.4 with Omniauth 1.1.4 …

devise omniauth ruby-on-rails-3.2
Rails - How to test that ActionMailer sent a specific attachment?

In my ActionMailer::TestCase test, I'm expecting: @expected.to = BuyadsproMailer.group_to(campaign.agency.users) @expected.subject = "You submitted #{offer_…

ruby-on-rails-3 unit-testing ruby-on-rails-3.2 actionmailer
How to set defaults for ransack sorting?

To put simply enough, I'd just like to know if there's a way to set defaults for the sorting functionality …

ruby ruby-on-rails-3.2 ransack
turbolinks issues with bootstrap modal

I doing a modal like this: Link that shows the modal: <%= link_to "versão resumida", resumed_rep_life_…

ruby-on-rails twitter-bootstrap ruby-on-rails-3.2 turbolinks
cannot load such file -- mocha/object (LoadError)

When I run rspec to test, I got this error: cannot load such file -- mocha/object (LoadError) The problem …

rspec ruby-on-rails-3.2 rspec2 spork ruby-mocha