Top "Ruby-on-rails-3" questions

Ruby on Rails is an open-source web development framework written in Ruby.

Convert duration to hours:minutes:seconds (or similar) in Rails 3 or Ruby

I have a feeling there is a simple/built-in way to do this but I can't find it. I have …

ruby-on-rails ruby datetime ruby-on-rails-3
Rails: redirect_to with :error, but flash[:error] empty

I'm trying to do a redirect while setting the flash[:error] value. (Rails 3.0.10) In my view I have <p …

ruby-on-rails-3
file download link in rails

I would like to give visitors the option to download some pdf. I have tried: <%= link_to "abc", "/data/…

ruby-on-rails ruby-on-rails-3 hyperlink download link-to
PG undefinedtable error relation users does not exist

I saw this question up before, but only for rspec. I haven't created test yet because it's too advanced for …

ruby-on-rails database ruby-on-rails-3 oauth-2.0 rake-task
Rails respond_with: how does it work?

I've been reading here and there about how cool the respond_with method is in Rails 3. But I can't even …

ruby-on-rails ruby-on-rails-3
curl json post request via terminal to a rails app

I'm trying to create a user on my rails app with a curl command from os x terminal. No matter …

json ruby-on-rails-3 macos curl terminal
Removing all installed Gems and starting over

I recently started learning Ruby and Ruby on Rails, and have watched a plethora of getting started materials. I have …

ruby macos ruby-on-rails-3 rubygems rvm
rake db:schema:load vs. migrations

Very simple question here - if migrations can get slow and cumbersome as an app gets more complex and if …

ruby-on-rails ruby-on-rails-3 migration
Ruby syntax: break out from 'each.. do..' block

I am developing a Ruby on Rails app. My question is more about Ruby syntax. I have a model class …

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.1
rails - "WARNING: Can't verify CSRF token authenticity" for json devise requests

How can I retrieve the CSRF token to pass with a JSON request? I know that for security reasons Rails …

ruby-on-rails-3 ruby-on-rails-3.1 devise csrf