Hi All,
I use rails 3.0.1 in my application and when the server web load this
following page http://localhost:3000/signup
<h1>Sign up</h1>
<%= form_for(@user) do |f| %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :email %><br />
<%= f.text_field :email %>
</div>
<div class="field">
<%= f.label :password %><br />
<%= f.password_field :password %>
</div>
<div class="field">
<%= f.label :password_confirmation, "Confirmation" %><br
/>
<%= f.password_field :password_confirmation %>
</div>
<div class="actions">
<%= f.submit "Sign up" %>
</div>
<% end %>\
recieve this message:
I18n::InvalidLocaleData in Users#new
can not load translations from
/cluter/RoR/sample_app/config/locales/routes.rb, expected it to return a
hash, but does not
Showing /cluter/RoR/sample_app/app/views/users/new.html.erb where line
#5 raised:
Extracted source (around line #5):
2:
3: <%= form_for(@user) do |f| %>
4: <div class="field">
5: <%= f.label :name %><br />
6: <%= f.text_field :name %>
7: </div>
8: <div class="field">
reading on different forums maybe something wrong on
config/locales/en.yml or not load yaml file?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.