I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

project_alias_compat_1.4.5.patch

Spenser Gilliland, 11 Dec 2012 02:00

Download (1.37 KB)

View differences:

project_alias_new/app/views/project_aliases/new.rhtml 2012-12-11 01:43:05.014181077 +0000
1 1
<h2><%= link_to(l(:label_project_alias_plural), { :controller => 'project_aliases', :action => 'index' }) %> &#187; <%= l(:label_project_alias_new) %></h2>
2 2

  
3
<%= error_messages_for :alias %>
3
<% if @alias.errors.any? %>
4
  <ul>
5
    <% @alias.errors.full_messages.each do |msg| %>
6
      <li><%= msg %></li>
7
    <% end %>
8
  </ul>
9
<% end %>
4 10

  
5
<% form_for(@alias, :url => { :action => 'create' }, :builder => TabularFormBuilder) do |f| %>
11
<% form_for(@alias, :url => { :action => 'create' }, :builder => Redmine::Views::LabelledFormBuilder) do |f| %>
6 12
  <div class="box tabular">
7 13
    <p>
8 14
      <%= f.text_field(:alias, :size => 60, :required => true) %><br />
project_alias_new/config/routes.rb 2012-12-11 00:09:37.435195145 +0000
1
ActionController::Routing::Routes.draw do |map|
2
  map.connect 'admin/plugins/project_alias/:action', :controller => 'project_aliases', :conditions => {:method => [:post, :get]}
3
end
Terms of use | Privacy policy