[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
Not sure the solution is in here but https://www.altamiracorp.com/blog/employee-posts/rails-3 Didn't work for me. I really need a solution to the path problem :-) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Re: Problem with assets and path

2013-07-16 Thread Kory Tegman
there is a rails_root helper. but it is depreciated. check out this http://stackoverflow.com/questions/9192795/rails-root-not-longer-valid-when-loading-images-with-the-prawnto-2-gem On Tuesday, July 16, 2013 8:38:24 AM UTC-7, Ruby-Forum.com User wrote: > > Walter Davis wrote in post #1115639:

[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
Walter Davis wrote in post #1115639: > I find that I do have to do this after every change at the server. I > don't need to include the environment, it seems to be a default somehow. > rake assets:precompile is enough (I do run rvm on the server, so the > bundle exec part is inferred as well). > >

[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
Additional question. Should I run "RAILS_ENV=production bundle exec rake assets:precompile" on the server? Must I do that each time I add a new asset, e g image or new css file? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Gr

[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
One more thing. The host has a www directory. When using rails the app is in another directory with a .htaccess and a RewriteRule in www pointing to the rails app and dispatch.fcgi. Could it be a problem with that? -- Posted via http://www.ruby-forum.com/. -- You received this message becaus