views:

81

answers:

1

Very simple AJAX call to make a div go up. Though it's not working. Trying to transition from 2.3.8 to 3.0. Any help is greatly appreciated. I've googled, though I'm not able to make any sense of the jargon. :( Thanks in advance

View:

<div class="test">
  Whompa
</div>
<%= link_to 'Blind-Up', :controller=>:home,:actions=>:test, :remote =>true %>

Controller:

  def test
    render :update do |page|
      page[:test].visual_effect :blind_up
    end
  end
A: 

Great Post on an example of using Rails3 + CRUD + UJS.

http://www.stjhimy.com/posts/7

RoR