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
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
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
$('#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
4 matches
Mail list logo