Sha256: efe914f7eeb87610f35ad503d890ae4d4d6fd8cfea07c94f81ccf8b13f2262b5
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
<%= form_for([kuztuscms, @article]) do |f| %> <% if @article.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@article.errors.count, "error") %> prohibited this article from being saved:</h2> <ul> <% @article.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <fieldset> <legend><%= controller.action_name.capitalize %> Article</legend> <div class="control-group"> <%= f.label :name, :class => 'control-label' %> <div class="controls"> <%= f.text_field :name, :class => 'text_field' %> </div> </div> <div class="control-group"> <%= f.label :body, :class => 'control-label' %> <div class="controls"> <%= f.text_area :body, :class => 'span8 text_area' %> </div> </div> <div class="form-actions"> <%= f.submit nil, :class => 'btn btn-primary' %> <%= link_to 'Cancel', kuztuscms.articles_path, :class => 'btn' %> </div> </fieldset> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems