RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: khcr
I'm running a VPS on Ubuntu 12.04, the deployment works fine but i need to restart of the server to update the code ! Why ?
I don't know how to get the link of an image I upload in a page, with a data-mercury="image".
For example, i have this: <div> id="page_content" data_mercury="full"></div>
<div> id="page_content" data_mercury="full"></div>
I get it in the controller like this: params[:content][:page_title][:value]
params[:content][:page_title][:value]
How to do with ?: <img id="article_image" data-mercury="image">
<img id="article_image" data-mercury="image">
Thank you
I'm running a VPS on Ubuntu 12.04, the deployment works fine but i need to restart of the server to update the code !
Why ?
I don't know how to get the link of an image I upload in a page, with a data-mercury="image".
For example, i have this:
<div> id="page_content" data_mercury="full"></div>
I get it in the controller like this:
params[:content][:page_title][:value]
How to do with ?:
<img id="article_image" data-mercury="image">
Thank you