rake asset:precompile for rails 2.3.18

75 views
Skip to first unread message

Thilak G

unread,
Jul 25, 2014, 2:11:56 AM7/25/14
to rubyonra...@googlegroups.com

hi everyone,

i have deployed a rails application on heroku
ruby version 1.9.3-p547
rails version 2.3.18

while i am using webrick server its working properly,but using unicorn server its not working ,that means it didn't support javascript, css and all,it shows error like this

ActionController::RoutingError (No route matches "/images/search.jpg" with {:method=>:get}):

so i have tried this command $ bundle exec rake assets:precompile RAILS_ENV=production RAILS_GROUPS=assets
but it shows error like this

rake aborted!
Don't know how to build task 'assets:precompile'

in rails 2.3.18 not even have assets.please help me to solve this.

thanks in advance


Hassan Schroeder

unread,
Jul 25, 2014, 8:49:09 AM7/25/14
to rubyonrails-talk
Yes, there's no asset pipeline in Rails 2.3.x, so you need to fix your
actual problem.

What happens when you try this on your dev system?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Reply all
Reply to author
Forward
0 new messages