Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:33:25+00:00 2026-06-05T22:33:25+00:00

When I acesss http://example.com/users/1/messages/new it says undefined method `error_message_on’ for #<#<Class:0x00000005921d50>:0x0000000591e448> If I delete

  • 0

When I acesss http://example.com/users/1/messages/new it says

undefined method `error_message_on' for #<#<Class:0x00000005921d50>:0x0000000591e448>

If I delete the lines that have “error_message_on” from view,
no error appears but it shows blank page. so weird 🙁

messages new view is just like this. whats wrong?
Thanks in advance!!

<% form_for @message, :url => user_messages_path(@user) do |f| %>
  <p>
    To:<br />
        <%= f.text_field :to %>
        <%= error_message_on @message, :to %>
  </p>
  <p>
    Subject:<br />
    <%= f.text_field :subject %>
    <%= error_message_on @message, :subject %>
    </p>
    <p>
      Message<br />
      <%= f.text_area :body %>
            <%= error_message_on @message, :body %>
    </p>
    <p>
      <%= submit_tag "Send" %>
    </p>
<% end %>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:33:26+00:00Added an answer on June 5, 2026 at 10:33 pm

    You need to change the erb tags you are using for the form_for declaration. It should be <%= instead of <%. That should fix the blank page.

    As far as how to display the error messages, error_message_on was deprecated in Rails 2.3.8. You’ll need to use something that is supported in your version of Rails. This question might be of use and there’s also this one

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using file_get_contents('http://example.com'); I get the error 'function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in
$(function(){ $.getJSON('http://pipes.yahoo.com/pipes/pipe.run?_id=7ba696f34ae17b6fa8f5d4de13064dea&_render=json&callback=?',function(data){alert('called')}); }); i am using the above code to acess the a yahoo
Im using reflection to acess a class tha represents a table in DB.However,reflection read
Please help me, I am new to EF.Lazy loading for POCO objects doesn't seem
We develope for multy users OS. So my Air App needs to save some
I created a web view and im trying to just launch google.com for now.
I'm new to maven project. I'm changing an ant project to maven project. To
I have a site in /public_html folder and I have another one in /public_html/addondomain.com
This is a noob question using System.name; class class_name { private className Obj; public
I have assigned class varaible as.... [MyINFO setUsrID:[dict valueForKey:USERID]]; but when i access usrID

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.