search for: mealnam

Displaying 3 results from an estimated 3 matches for "mealnam".

Did you mean: mealname
2006 Mar 03
1
rjs isn''t update_page problems
...> ''meal_names'', :action => ''destroy'', :id => meal_name.id}, :confirm => "are you sure you want to delete #{meal_name.name}?" %></font></li> <% end -%> </ul> </div> and in my controller def add @name = MealName.new if request.post? @name = MealName.create( params[:meal_name] ) update_page do |page| page.insert_html :bottom, ''name_list'', "<li>#{@name.name}</li>" page.visual_effect :highlight, ''name_list''...
2006 Apr 09
4
Best RJS process for what I''m trying to do...
...ut when i submit a new name, it gets added to the list as just <li> #{@name.name} </li> so it doesn''t have the formatting or the delete button like the other items. Whenm I refresh the page, then it looks proper. Here''s my controller add method: def add @name = MealName.create( params[:meal_name] ) @meal_names = MealName.find(:all) @meal_names << @name render :update do |page| page.insert_html :bottom, ''meal_names'', "<li> #{@name.name} </li>" page.visual_effect :highlight, ''meal_names'',...
2006 Mar 03
0
re: rjs update_page problems
...> ''meal_names'', :action => ''destroy'', :id => meal_name.id}, :confirm => "are you sure you want to delete #{meal_name.name}?" %></font></li> <% end -%> </ul> </div> and in my controller def add @name = MealName.new if request.post? @name = MealName.create( params[:meal_name] ) update_page do |page| page.insert_html :bottom, ''name_list'', "<li>#{@ name.name}</li>" page.visual_effect :highlight, ''name_list''...