search for: link_controller

Displaying 1 result from an estimated 1 matches for "link_controller".

Did you mean: links_controller
2006 Jul 21
1
RJS Failing
This code was working before I created the update_link_list method in the helper below (everything was in the controller). I can successfully create a new link but I get a TypeError when I leave all form fields blank -- I expect to see validation error messages. --- #link_controller.rb: def create link = Link.new(params[:link]) saved = link.save num_links = Link.find(:all).size num_cats = Category.find(:all).size if request.xhr? render:update do |page| page.update_link_list(link, saved, num_links, num_cats) end return end if saved...