trip dragon
2006-Jun-15 16:52 UTC
[Rails] how can I use Ajax auto refresh after I save a file ??
I have open lots of windows one of which is the views files... When I edit the code and save to see what is happening on teh html page I have to hop back and hit refresh and hop back to see what went wrong in code... Can i have the page just auto refresh every say second ?? just for development purposes ??? -- Posted via http://www.ruby-forum.com/.
Matthew Margolis
2006-Jun-15 17:00 UTC
[Rails] how can I use Ajax auto refresh after I save a file ??
trip dragon wrote:> I have open lots of windows one of which is the views files... > When I edit the code and save to see what is happening on teh html page > I have to hop back and hit refresh and hop back to see what went wrong > in code... > > Can i have the page just auto refresh every say second ?? just for > development purposes ??? > > >That would get annoying really quick once you start doing anything that requires user interaction like filling out a form. I would recommend that you just keep hitting reload after making a change. It might seem like a pain now but once you get more familiar with Rails you will be able to write more and more code with confidence and will not be hitting refresh every time you make a tiny change. Matthew Margolis blog.mattmargolis.net