How to handle this type of js on rails ? i have looked in Javascript helper but i didn't find a match for this case.
<li><a class="sea-green" href="javascript:chooseStyle('sea-green', 60)" title="Sea Green">Sea Green</a></li>
you can do it with jquery, something like this:
view:
<li><a class="sea-green" title="Sea Green">Sea Green</a></li>
JS file:
$('.sea-green').click(function(){
chooseStyle('sea-green', 60)
});