Sorry if this is a bit complicated. I will try to describe it as best I can, but please ask questions if I am unclear.
I am having issues getting JQuery to be parsed by ruby. For instance, the following line of code is supposed to add the @user\'s username after the div with id \'title.\'
I\'m trying to use the Thor::Actions template method to generate some C++ test file templates, but erb keeps telling me that I have undefined variables and methods.
I wrote a form that generates a text input for each property. The list of properties is configurable by the customer.
In a plain-text .erb template, what method would you suggest I use to produce the most maintainable/readable code for something like this:
I have a rails3 form that allows the user to edit a list of answers, as part of an assessment. I use a fields_for loop to generate each text input:
My ERB file works fine if I use text_field, but if I switch to text_field_tag I receive this error: undefined method `text_field_tag\' for #<ActionView::Helpers::FormBuilder:0x00000001f6fd50>
I am facing a really weird issue and unfortunately, rails doesn\'t provide any useful stack traces for debugging. I have a standard controller, posts_controller. In the routes, I have defined resource
While i开发者_开发百科t could of course be done neater by putting the code into the controller or something, I can not image why the following is happening:
I would like to use some erb in my .coffee files, like the following example myLatlng: new google.maps.LatLng(<%=@location.latitude %>, <%=@location.longitude %>)