search for: edit_link

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

Did you mean: edit_line
2008 Apr 19
4
Is testing output within content_for possible?
I wanted to test that the links below were being rendered in the views. - content_for :sidebar do %ul.links %li= edit_link edit_admin_contact_url(@contact), "Contact" # view test it "should have the correct side bar links" do do_render response.should have_tag("ul.links") do with_tag("a[href=?]", edit_admin_account_url(accounts(:test))) end end...
2006 Jun 16
1
sortable acts_as_tree with heirarchy
...nal list and I''ve got the drag and drop working on children, but as can''t get it to save the tree. Here''s my view: <h2>Menu Prototype 2</h2> <%= flash[:notice] %> <ul id="menu"> <% @navigation.each do |link| %> <li class="edit_link level<%= link.parent_id %>" id="_<%= link.id.to_s %>"> <%= link.name %> <ul class="edit_list"> <% link.children.each do |child| %> <li class="edit_link level<%= child.parent_id %>" id="_<%= child.id.to_s...
2008 May 26
11
doesn't create my guestbook
Hi, I''m having some trouble with my realtions (I think). I''m creating a guestbook with comments in ajax (the structure resembles the structure of a blog). So I''ve got a "flogs table" which keeps the "user_id" and the "id" of the flogs. This table. Then I''ve got a "guestbooks table" containing "id" of the