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