css float - Ruby-on-rails trying to get text and link_to on the same screen line -


Ruby on the rail - One page (view) displays how trying is to change.

Float to display an index page with an image as well as an image I am currently using.
I want the text (Markdown Post.audi) to see below below ... after "more" (where there is more one underlined link). Currently "more" appears on a new line.

I'm getting ... "compiled javascript code.The second command is" run ", which compiles the code in your editor and evaluates javascript that shows the result of your ... < / P>

more "

what do i want ..." compiled javascript code. The second command is "run", which compiles the code to evaluate your editor and javascript Results show ... more "

I have an App / View / Po St / index

  & lt; Div class = "article-face-img" & gt; & Lt;% face_image = article_face_image Post% & gt; & Lt;% = image = image_tag Face_Shapes, Size: "260x205", Category: "Article-Face-IMG"% & gt; & Lt; H1 & gt; & Lt;% = post.title% & gt; & Lt; / H1> & Lt;% = dateconvert post.updated_at% & gt; & Lt;% = markdown post.body [0..1250] + "..."%> & Lt;% = link_to 'more', post% & gt; & Lt; / Div & gt;  

Where "article_face_image" and "markdown" are the helpful methods.

to CSS

  // for posts to align posts and text. Article-Foam-IMG {Float: Left; Padding: .8em; } .clearfix {clear: both; }  

I have tried several things, in which post_bone can be attempted to add to the link before the display

   & Lt;% b = link_to 'more', post% & gt; & Lt;% = a = A + b% & gt;  

Thanks for any help, Pierre

I think That's your problem markdown a & lt; P & gt; ... & lt; P / & gt; embeds your text within the tag, and this is why your more appears on a different line than the markdown code

I work with this Will:

  & lt;% = markdown post.body [0..1250] + "... # {link_to 'more', post}"%>  

Basically embed the link within your marked down string


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -