Hi All,
In my config/user.yml
age: |
the age of the user is <%=user.age%>
the name of the user is<%=user.name%>
In my controller:
user=User.find_by_name("judi")
age=user.age => i get 34
puts eval(USER["age"]) =>get nil value in console
puts (USER["age"] => got "the age of the user is <%=user.age%>
the name of the user is<%=user.name%>"
In view:
<%=eval(USER["age"])%>
i didnt get anything in view..
can anybody help me to replace the <%=user.age%>,<%=user.name%>
dynamically in yml file
thanks
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.