In my modal, I have a link. The link is written as follows:  <%= link_to "HIDE DETAILS", '#', class:'right' %>   When I click on that link, I want the link to display "SHOW DETAILS" instead of "HIDE DETAILS&#...
I created a checkbox in my html.erb as the following:   <%= check_box_tag(:fenix_fee_charged) %> <%= label_tag(:fenix_fee_charged, "FENIX_FEE_CHARGED") %> <%= check_box_tag(:fenix_fee_no_charged) %> <%= label_tag(:fenix_f...
I'm struggling with some Javascript in my first rails application.  Partial: _care_point.html.erb  <script>   $(function() {     $( ".draggable" ).draggable({grid: [50, 20]});     $( ".node_input").each (function() {       $...
I'm using notices in Rails and Devise and wondered what's the best way to display them?  In my application I also have it so when a user saves a post, it saves it using Ajax and I use jQuery to display a notice.  For all the notices I use:  &...
For a Rails 3.1 app, some of my site wide JavaScript is only included when certain real time, instance specific conditions are met. This means I can't put it in the new asset pipeline's application.js because that isn't parsed by erb for...
I want lineChart of Chart.js in my sinatra application. But firefox console says  `TypeError:this.scale is undefined(Chart.js:2686)`   and, lineChart is not displayed.I wrote following code.  @hello.erb  <html>     <head>         <scri...
In Rails, I have a Coffeescript file in my views that gets rendered as the response to an AJAX request.  If I have some ERB control logic using <% %>, Id' like to be able to indent everything logically like I would in an HTML view:  example...
I need to make a signature to pass as param into a jQuery $.post AJAX request, but I have some values to be hashed into Javascript vars. Any way to do it in an ERB file? Example:  var signature = '<%= Digest::MD5.hexdigest "app_key" +...
I have some small bits of javascript which are easier and clearer if they are part of an .erb, that is, foo.js.erb. Where should I place such files? I can see my code nicely working if I put the relevant lines right in the .html.erb file, but that is...
I'm writing an admin service from network communicator using rails.   So my problem: User clicks a button -> groups user sees network groups -> user chooses some group -> user sees IP addresses. I have two forms on the page and I need to...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.