Re: [Rails] element for styling text

2019-12-24 Thread Edsil Basadre
If you want to style * <%= m.content %>, *you need to wrap this in a HTML element then you can apply CSS. Example: *<%= m.content %>* On Tue, Dec 24, 2019 at 5:17 PM fugee ohu wrote: > I have elements like <%= m.content %> where m stands for message as I > iterate through @messages How do I

[Rails] element for styling text

2019-12-24 Thread fugee ohu
I have elements like <%= m.content %> where m stands for message as I iterate through @messages How do I style them since I haven't defined them as any type of element -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from

[Rails] create chat view

2019-12-24 Thread fugee ohu
I'm trying to create a chat view where if the sender of the message is the current user then the message is displayed on the right side and if the sender is the other user then the message is displayed on the left So far what I have doesn't right or left float the messages, they all appear in

[Rails] jquery css styling not being applied when appending to the dom

2019-12-24 Thread fugee ohu
$('#message_holder').append('' + data.content + '') The string gets appended to the message_holder div like so: 9 but the styling defined in .right doesn't get applied What to do? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To