Top "Ruby-on-rails-3.1" questions

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

How to use pg:psql in heroku?

I am trying to detect my db at heroku terminal like this: myapp@ubuntu:~/RubymineProjects/myapp$ heroku pg:info The …

postgresql heroku ruby-on-rails-3.1
Rails: about yield

I saw some code in a Rails v2.3 app. In layout/car_general.html.erb (this view is called by …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1
Access Asset Path from Rails Controller

I'm sharing a configuration yml file client side, that I need to also load on the server side, I've placed …

ruby-on-rails ruby-on-rails-3.1 sprockets
Rails 3.1 asset pipeline: how to load controller-specific scripts?

If I generate a new controller in Rails 3.1, also a javascript file with the name of the controller will added …

ruby-on-rails ruby-on-rails-3.1 asset-pipeline assets sprockets
Change format of created_at in Rails 3.1?

I am calling the date a record was created at in a basic app running Rails 3.1. <%= @issue.created_at %&…

ruby-on-rails date timestamp ruby-on-rails-3.1
Adding New Admins to Active Admin

I am using devise for my users. I recently installed the rails Active Admin gem, everything is working beautifully. However …

ruby-on-rails devise ruby-on-rails-3.1 activeadmin
Rails: How to disable asterisk on form's required fields?

When I add the 'Required' attribute to html input fields, Rails pre-pends an asterisk (*) before the label. Does anyone know …

ruby-on-rails ruby-on-rails-3.1 simple-form
Get Content Type of Request

To find the incoming content type, docs say: request.headers["Content-Type"] # => "text/plain" But I found by trial-and-error, that …

ruby-on-rails http rest ruby-on-rails-3.1 mime
No route matches [GET] "/users/sign_out"

Here is my actual error: No route matches [GET] "/members/sign_out" Since most people will use "users" I thought …

authentication devise ruby-on-rails-3.1