ruby - Dynamic CSS generation doesn't work in Rails4 -


The following code is not working, according to me 'read-more-105', 'more -106 etc., tale According to .id's vale

  and lt;% = simple_format truncate (plot.description, length: char_counter) {link_to "Read more", "Category:" Read-more- & lt; % Tale.id% & gt; '}%>  

You need string projection here:

  & Lt;% = Simple_Format Trunket (Plot Discription, Length: Charles), {link_to "Read more", "Category:" Read-more - # {narration}} "}% & Gt;  

As you <%%> a and <%%> or & lt;% =% & gt; < / Code>.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -