Sunday, October 24, 2010

Rails routes, respond_to and more

As pulled from:

I've used respond_to previously...but it slipped my i figured I'd repost it here.

Here is the snippit that replaced a separate (and now useless method) for each major entry view page.

respond_to do |format|
format.js { render :partial => 'list.html.erb' }

No comments:

Post a Comment