mercredi 11 mars 2015

Execute ruby code through insert in text area

I am working on a app which has the dynamic layout and design. I created a scaffold as rails g scaffold home html:text css:text js:text through command line. i execute all the html,css and js code through insert in text area with the help of html_safe or raw(). Now my question is I want to execute the code like <%= link_to "admin signout", destroy_admin_session_path, :method=>:delete %>


how it would be possible. I dont know much well about this.


Aucun commentaire:

Enregistrer un commentaire