Saturday 15 March 2014

ruby - Rails apps Destroy/Delete method is not working on Heroku, but works in local machine -



ruby - Rails apps Destroy/Delete method is not working on Heroku, but works in local machine -

i created new rails app , ran scaffold command:

rails generate scaffold user name:string age:integer

then ran:

rake db:migrate command.

i uploaded github , heroku. destroy method works in me local machine on heroku when click to destroy link goes show method , show data(user).

i using ubuntu 14.04(on windows 7), rails 3.2.7, ruby 1.9.3.

the app link on github

you need precompile before deploy on heroku following:

rails_env=production bin/rake assets:precompile

read more precompiling assets, heroku assets precompile

ruby-on-rails ruby sqlite heroku

No comments:

Post a Comment