I have some RJS in a rails app.I\'d like to be able to check the style of an html element before executing an action on that element.
I have the following code in my controller: File: app/controllers/photos_controller.rb def show_snapshot_comments
I hope you forgive me if I\'m a little confused about this. Jrails rewrites all the helper methods for rjs otherwise in prototype.
I\'m trying to show a flash message and render it with Ajax, but the message does not seem to be appearing until after I refresh the page.
I had some common bits of RJS that I was repeating in multiple RJS files开发者_运维技巧, and so wanted to put it into a helper.
I find a way to submit information after clic on a checkbox. <% remote_form_for @object do |f|%>
In my controller I have: respond_to do |format| format.js end In my rjs: page.replace_html(\"source_credential_list\", :partial => \"source_credential_list\", :object => @all_source_credenti
I\'m quite sure this is a silly error but I\'m unable to spot it. Please help me out on this. I\'m using a select tag to select a topic, which triggers the filter_by_content method. I\'m using Rails
I want to assign the value and the innerHTML source of a DOM element to the local ruby variables. However, in my method seemly i can not make use of the RJS to complete th开发者_JS百科is function.
I have a \'like\'-counter in a rails project. Whenever one clicks this \'like\'-link I want to add one to the like_counter in the database. The logic works well and the database is updated, but I cann