simple question on string editing

12 views
Skip to first unread message

michalyad

unread,
May 26, 2010, 11:55:44 AM5/26/10
to Israel.rb - the Israel Ruby & Israel Rails Developers group
:confirm for delete action, gets a message.

How can I create the string to this message so it will include editing
instructions... such as line break, bold, colors etc...

Elad Meidar

unread,
May 26, 2010, 12:03:02 PM5/26/10
to isra...@googlegroups.com
i wouldn't use this option anyway, since it's an ugly implementation of obtrusive javascript malpractice.

go the hard way and implement some kind of a "modal window" in your js framework of choice, and edit the text and you'd like.


--
Elad Meidar, CEO, Nautilus6
+954-805-0504 | http://www.nautilus6.com | @nautilus6

> --
> You received this message because you are subscribed to the Google Groups "Israel.rb - the Israel Ruby & Israel Rails Developers group" group.
> To post to this group, send email to isra...@googlegroups.com.
> To unsubscribe from this group, send email to israelrb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/israelrb?hl=en.
>

nadav...@gmail.com

unread,
May 27, 2010, 3:44:48 AM5/27/10
to Israel.rb - the Israel Ruby & Israel Rails Developers group
If I understood it correctly, in rails 3 the confirm message for
delete link is done unobtrusively.
i.e: <a rel="nofollow" data-method="delete" data-confirm="Are you
sure?" class="delete" href="/user/1">Delete</a>

Nadav

Elad Meidar

unread,
May 27, 2010, 4:16:56 AM5/27/10
to isra...@googlegroups.com
that is currect, but you still need to implement the js side.

Elad Meidar, Nautilus6
http://blog.eizesus.com
http://twitter.com/eladmeidar

On May 27, 2010, at 10:44, "nadav...@gmail.com"

Reply all
Reply to author
Forward
0 new messages