Ruby on Rails
Sunday, February 10, 2019
Hi, thank you very much for replying. I forgot to mention a biggie: that JS isn't allowed. I can use CSS and Bootstrap but no JS allowed in this particular project (JS is our next module).
I sense that Ruby (on Rails) isn't particularly geared for this type of interactivity.
On Sunday, February 10, 2019 at 2:25:30 AM UTC-5, hasan...@gmail.com wrote:
Daniel,On Sat, 9 Feb 2019 at 23:13, Daniel Toma <toma...@gmail.com> wrote:I just can't think of how this would be done, and I was wondering if anyone had an idea.While you could use ruby for this, a Javascript solution is going to be less heavy on the server. Simply define a class for blue and a class for red as follows in CSS:.available { background-image("//location/of/green/image"); } .taken { background-image("//location/of/red/image"); } .na { background-image("//location/of/unavailable/image"}; } Now that these are defined, you can set the class on submit using jquery's .addClass after removing the old one using .removeClass. Good luck, matey and let me know if you need further assistance.--If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest .Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.Envoye de mon portable
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6114bedb-e26d-4da1-b958-bc7efd99ada3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment