Displaying 1 result from an estimated 1 matches for "_errors".
Did you mean:
errors
2006 Sep 10
11
Using partials with Markaby
...note"
if @note
render :partial => ''form/errors'', :record => @note
end
...
(that snippet, as well as the partial is stolen shamelessly from Restolog
(thought converted to Markaby), which is a nice example of a REST-ful rails
app)
here''s the partial, in form/_errors.mab:
unless record.nil? or record.errors.empty?
div :class => "message-error" do
p "The #{record.class.to_s.downcase} could not be saved:"
ul do
record.errors.full_messages.each do |m|
li m.gsub(/ id /, '' '')
end
end
end
end
The error I...