Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert Validation helper...

Replytotopic

Validation helper

Posted in Forums : Ask a Rails expert

 
Profile

Authority 25
Posting Rating 2
Sign in to rate this post

Hi im anas
Iam trying for validation helpers but those r not working properly.
I mentioned helper methods in Model and i placed
in view
<%error_messages_for :some_object %>
and
in css
i mentioned Erros_with_explanation same as in scaffold…....
still it’s not working….............
plz help me…......................

 
Profile

Authority 50
Posting Rating 26
Sign in to rate this post

You need to output the messages:

<%= error_messages_for :some_object %>

using <= instead of <

Replytotopic

Other Recent Topics

Ask a Rails expert : How to use mephisto

Ask a Rails expert : How to use mephisto

Ask a Rails expert : will_paginate customization problem

Ask a Rails expert : BackgroundRB still wants 'development' environment...?

Ask a Rails expert : activescaffold, sql exception

Ask a Rails expert : Passing non-english chars in query string

Ask a Rails expert : Rails and 2D barcodes

Ask a Rails expert : apache giving proxy error

Ask a Rails expert : Custom Responses w/ 'extra' information...?

Ask a Rails expert : Log rotation in rails

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel