[Rails] Re: RJS Files, Conditions and REST

2008-11-03 Thread sw0rdfish
Regardless if I'm using "index" or "list" it still doesn't solve my issue. If both calls were made to the list command, my question is would I use a new format to get two different outputs ( views ) or is the correct way to use if statements in the RJS files? I'm leaning the way of the new forma

[Rails] Re: RJS Files, Conditions and REST

2008-10-31 Thread Bill Walton
Hi, sw0rdfish wrote: > the LIST command isn't part of the 7 REST actions... > so using list, is un-restful! Read more on REST. You've come to an incorrect conclusion: if it isn't part of the Rails default support for REST, then it isn't REST. Utter nonsense. Best regards, Bill --~--~-

[Rails] Re: RJS Files, Conditions and REST

2008-10-31 Thread sw0rdfish
the LIST command isn't part of the 7 REST actions... so using list, is un-restful! I'm still not convinced that the if statment in the RJS file is the way to go for fun I made a new RJS file, called it index.js2.rjs and made a new MIME type in environment.rb and it seems to work well... I've

[Rails] Re: RJS Files, Conditions and REST

2008-10-30 Thread Bill Walton
Hi, sw0rdfish wrote: > I've created some AJAX type searches in my project that rely > on searching on companies, which I use the INDEX action of > company_controller and pass a parameter While 'index' is an OK choice here, given the default action in Rails, you might want to consider using the