GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Rails Plugin - a RailsEngines-based CMS extension for any Rails project
Homepage: http://6brand.com
Clone URL: git://github.com/JackDanger/simple_pages.git
studioda (author)
Thu Feb 22 21:24:26 -0800 2007
commit  43825e1caa1777f919054f429e4a814afbb376e9
tree    18ec486c88ce0278fe216e6bceb778e03ddd2949
parent  382188b51a65726053defe5912e91230143854b8
simple_pages / app / views / simple_pages / edit.rhtml
100755 13 lines (8 sloc) 0.406 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
<%= link_to 'back to all pages', simple_pages_path %>
 
  <h1>You are now editing "<%= @simple_page.title %>"</h1>
 
  <%= form_tag simple_page_path(@simple_page), :method => 'put' %>
  
  <%= render :partial => 'fields' %>
  
  </form>
 
<% @simple_page.versions.reverse.each do |v| %>
  <%= render :partial => 'simple_page_version', :object => v %> <br />
<% end if @simple_page.respond_to?(:versions) %>