Displaying 3 results from an estimated 3 matches for "display_value".
2006 Jul 21
1
Partial, Table Layout, Multiple Controllers/Models... DRY?
Hi,
I am almost embarrased to ask this and I am sure it has been answered
previously but the search feature is down on ruby-forum so I am not
finding the answer.
I have several controllers (leads, orders, activities, etc...). I have
a ton of repeated html in each of the views for these controllers. For
example, my list view has the same table/tr/td and for..in type of code
and it just
2006 Feb 10
14
dynarch calendar and calendar helper usage
I am playing around with this and reference this wiki from RonR site...
http://wiki.rubyonrails.org/rails/pages/CalendarHelper
The error I am getting is:
NameError in Placements#list
undefined local variable or method `date_format'' for
#<PlacementsController:0xb78f9ef4>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
2009 Jun 20
0
AssociationTypeMismatch
...;
<%=
#@decodes = Decode.find(:all, :conditions => {:name =>
"Chapter_Type", :is_active => 1 })
@decodes = Decode.all(:conditions => {:name =>
"Chapter_Type", :is_active => 1 })
chapter_form.collection_select :chapter_type,
@decodes, :internal_value, :display_value, :prompt => ''Select module
type''
%>
</p>
<p>
<%= chapter_form.submit ''Create'' %>
</p>
<% end %>
<%= link_to ''Back'', chapters_path %>
Controller:
---------------
class ChaptersController &l...