Questions tagged [ruby-on-rails-3.2]

Ruby on Rails version 3.2.0 released at January 20, 2012. Use this tag for issues related to development in Ruby on Rails version 3.2.0.

Ruby on Rails version 3.2.0 is a specific version of Ruby on Rails. Released on January 20th, 2012. It has been succeeded by version 3.2.15. It brings many improvements to the Ruby on Rails web development framework.

The distinct features include:

  • Faster development mode: only modified classes are reloaded giving a visible performance boost.
  • Automatic Query Explanation: database queries taking longer than 30 seconds to execute are automatically explained while in development mode.

Further reading:

Related tag

6982 questions
2
votes
1 answer

How to inline CSS and JavaScript in the application.html.erb?

The default Rails 3.2 application.html.erb is this: Testapp <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application",…
wintermeyer
  • 8,178
  • 8
  • 39
  • 85
2
votes
1 answer

401 redirect loop with Active Admin and Devise

I have an application with Devise (2.2.3) and Active Admin (0.5.1) I installed Devise first, and then Active Admin afterwards. The entire app needs to sit behind a login, so in my application controller I have the following: before_filter…
purpletonic
  • 1,858
  • 2
  • 18
  • 29
2
votes
2 answers

Using Observer to send email from rails app

I am trying to send an email from my app. The email gets sent when I don't use observer. When I use observer i get the following error : undefined local variable or method ` UserMailer' for # Here's my UserMailer class…
user2122528
  • 71
  • 1
  • 4
2
votes
1 answer

Devise working local but not working on heroku

I have a app http://agile2go.herokuapp.com/ using devise + cancan. Running the app locally works fine but when deployed on Heroku the sign_up page displays an error message. However, the sign_in page works fine! I know the problem is when calling…
Rafael Jesus
  • 71
  • 2
  • 6
2
votes
1 answer

Heroku twitter bootstrap and sass compilation failed on production

I run a Rails 3.2 app I wanna have "twitter-bootstrap" only available for the backend users. in this specific backend layout I call the backend stylesheet: <%= stylesheet_link_tag "backends" %> my asset structure look like this: stylesheets …
Jan
  • 12,992
  • 9
  • 53
  • 89
2
votes
2 answers

customizing Devise's authenticate and current_user methods to work with soft delete / acts as paranoid

I am using Devise as authentication for a rails 3.2 app. My user model is called User, and I've been trying to implement a soft delete. I am trying to do this by using acts_as_paranoid, which automatically does the work for you. Things work as…
kindofgreat
  • 870
  • 8
  • 16
2
votes
0 answers

I18N and label() in rails 3.2

Is it normal if i use just label : label(user,:login) it seach locale with only 1 key : I18N keys: [:ru, :helpers, :label, :user, :login] If i use form_for: <% form_for(user) do |f| %> <%= f.label :login %> <% end %> it seach locale with 3…
2
votes
2 answers

connection error with tire/elasticsearch remote server

I have installed a ubuntu 12.04 remote server with elasticsearch. I have installed elasticsearch with: sudo apt-get update sudo apt-get install openjdk-7-jre-headless -y wget…
hyperrjas
  • 10,666
  • 25
  • 99
  • 198
2
votes
1 answer

How to filter results with Ransack

I am trying to implement Ransack for a search feature on my website. I tried watching the Railscasts on Ransack and got a pretty good idea of how to implement it. But I am running into an issue that I can't seem to figure out. In the Index action of…
2
votes
2 answers

Rails ajax form not submitting from within another

I have a Rails 3.2 ajax form that creates a new Room for a Hotel. The new Room ajax form works correctly on the Room index page, but once I embed the new Room ajax form on a Hotel edit page, the form is submitted normally without using Ajax. To…
Ryan
  • 10,798
  • 11
  • 46
  • 60
2
votes
1 answer

Is it possible to have a mail Observer that handle only a specific Mailer?

Is it possible to have a mail Observer that handle only a specific Mailer ? So that we can possibly have different mailer - mail-observer pair that work together to handle task after their mail has been sent. For instance one mail-obser could delete…
Douglas
  • 5,229
  • 3
  • 43
  • 54
2
votes
0 answers

How to use Devise authorization in custom middleware

I have middleware for serving files from mongodb #serve_gridfs_file.rb class ServeGridfsFile def initialize(app) @app = app end def call(env) if env["PATH_INFO"] =~ /^\/grid\/(.+)$/ process_request(env,…
Aitvaras
  • 261
  • 4
  • 15
2
votes
1 answer

Rails fails to recognize a PUT request

Rails gives the following error: No route matches [POST] "/users/32" Even though the routes, view and controller is set up correctly. What I am missing? Environment: Rails 3.2.12, Ruby 2.0.0p0 Routes Foo::Application.routes.draw do resources…
UncleLaz
  • 11,903
  • 2
  • 16
  • 11
2
votes
1 answer

How to Move Rails project from 2.3.5 to 3.2.11

My project has developed using rails 2.3.5 and now we are thinking to move our project to rails 3.2.11 Please give me some of the solutions on how to move our project into 3.2.11 and also let us know what are the changes we need to do for…
Sravan Kumar
  • 673
  • 1
  • 7
  • 12
2
votes
0 answers

Omniauth-twitter returns 401

Stage: I have a Rails app, it should authenticate users using their twitter account, so I use Omniauth-Twitter gem. I have configured one app in dev.twitter.com enabling Sign in with twitter flag and getting consumer_key and consumer_secret. I was…
Israel
  • 3,252
  • 4
  • 36
  • 54
1 2 3
99
100