Re: [Rails] Best Rails install for production.

2011-08-18 Thread Eric Björkvall
apache + mod_fcgi - I get better performance than when I tried apache/passenger and apache/mongrel. I'm running this set up under FreeBSD, CentOS 5.x and Mac OS X 10.6 Can be a bit tricky to set up.. Cheers, Eric On 14 aug 2011, at 12:45, Frederick Cheung wrote: On Aug 14, 10:33 am,

[Rails] Re: Rails, jquery and Ajax

2011-07-28 Thread Eric Björkvall
One way: link_to #, new_comment_path, :remote = true, :id = new-comment-link new.js.erb $(#new-comment-link).hide(); $('#commentlist').html('%= render :partial = comments %') You can use ruby logic in the .js.erb file - just like you could in former .rjs files. % if @condition %

Re: [Rails] Rails, jquery and Ajax

2011-07-28 Thread Eric Björkvall
One way: link_to #, new_comment_path, :remote = true, :id = new-comment-link new.js.erb $(#new-comment-link).hide(); $('#commentlist').html('%= render :partial = comments %') You can use ruby logic in the .js.erb file - just like you could in former .rjs files. % if @condition %

Re: [Rails] Nature of Return Values from Search

2011-07-28 Thread Eric Björkvall
Hej You probably should check the params hash in the controller: @skill_search1 = params[:skill1] etc.. Also use a debugger call in the search method to see the parameters that are passed def search debugger . . end Cheers, Eric On 28 jul 2011, at 22.03, Barney wrote: Hello,

Re: [Rails] Re: Nature of Return Values from Search

2011-07-28 Thread Eric Björkvall
:59 pm, Eric Björkvall eric.bjorkv...@gmail.com wrote: Hej You probably should check the params hash in the controller: @skill_search1 = params[:skill1] etc.. Also use a debugger call in the search method to see the parameters that are passed def search debugger . . end