On Friday, August 8, 2014 6:54:01 AM UTC+1, Adam wrote:
> Hi,
> 
> 
> Just starting out with Rails so bear with me.
> 
> 
> I was working on a test app and everything was going great. However now when 
> I run "rails server" and none of the changes to the controller files are 
> reflected.
> 
> 
> If I make changes to HTML files, those are reflected. And yes, I'm sure im in 
> the right directory editing the correct files.
> 
> 
> I can get rid of actions in the controller files and it still works fine. Do 
> I have to do something after I change the ruby files? I thought I could just 
> save them then run 'rails server'... It had seemed to be working doing just 
> that previously.
> 
> 

Have you only been testing deleting actions? If so you might have been fooled 
by the fact that you don't have to define a controller method for an action - 
as long as there is a template rails will render that automatically. 

Another thing to lookout for is using require to load your controllers/models - 
that will confuse the code reloading system (it's fine to use it for gems, the 
ruby standard library etc)

Fred. 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/a7c3401e-790d-4acb-9808-29a263f413e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to