[Rails] Re: Routing problems for different formats

2009-08-23 Thread Chris Olsen
Maurício Linhares wrote: Without looking at your routes and code it's really had to find a reason. A big part of the issue is that the initial problems are using standard code, the hacks only come into play to make things work. First issue: $(#terms-of-use).click(function() { var url =

[Rails] Re: Routing problems for different formats

2009-08-23 Thread Maurício Linhares
Hi Chris, You're not doing any hacks, you're doing what's expected to tell rails that a route will accept various formats, you should take a look at the routes guides to undertand how the respond_to method works. Also, to get JQuery to behave correctly without the .js you'll need to add this

[Rails] Re: Routing problems for different formats

2009-08-23 Thread Chris Olsen
Thanks for clearing that up Maurício. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to