Top "Ruby-on-rails-3.1" questions

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

How to get the total count after Kaminari pagination

I am using rails 3.2. I am paginating my results using .page(1).per_page(10) like @users = User.method().page(1).per_page(10) …

ruby-on-rails-3.1 kaminari
Use LIKE/regex with variable in mongoid

I'm trying to find all documents whose text contains the word test. The below works fine: @tweets = Tweet.any_of({ :…

ruby-on-rails mongodb ruby-on-rails-3.1 mongoid
carrierwave - rails 3.1- undefined method: image_will_change

I get an error that look like this: undefined method `post_image_will_change!' for #<Post:0xf4e9184&…

ruby-on-rails-3.1 carrierwave railscasts
How to build task 'assets:precompile'

I'm getting that error on my production server, and can't figure out why. It happens when running this command: bundle …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 production asset-pipeline
Does form_tag work with Simple_form?

I have a form that is using form_tag and not sure how to use it with the simple_form …

ruby-on-rails ruby-on-rails-3.1 simple-form
Can't push app Heroku - Failed to install gems via Bundler

This is how looks my Gemfile: source 'http://rubygems.org' gem 'rails', '3.1.2' #gem 'sqlite3' gem 'mysql2' …

ruby-on-rails-3.1 heroku bundler git-push pg
How to make Rails 3.1 use SASS (Over SCSS) as the default?

Having a hard time figuring out how to make SASS, not SCSS, as the default for stylesheets. I've tried making …

ruby-on-rails ruby sass ruby-on-rails-3.1
Sass / SCSS Mixin for Clearfix - best approach?

I want to remove the clearfix class from my HTML and include a clearfix mixin in my SCSS (Rails 3.1 application). …

ruby-on-rails-3.1 sass mixins clearfix
How to disable ActionMailer in Development?

sometimes when I am developing, I do not have an internet connection. This results in an error wherever my app …

ruby-on-rails ruby-on-rails-3.1 environment-variables actionmailer
Add defer attribute to javascript_include_tag Rails

Is there some way to add the defer attribute easily using the javascript_include_tag helper in Rails? I.e., …

javascript ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 deferred-execution