0
votes
0answers
14 views

Rails 3 custom validation error message causes 422 http status

Here is my custom validation: class UserSport < ActiveRecord::Base attr_accessible :athlete_id, :sport_id, :primary MAXIMUM_SPORTS = 5 belongs_to :athlete belongs_to :sport ...
0
votes
1answer
50 views

Like/Unlike Without Ajax or jQuery on Rails

I'm trying to implement a simple like/unlike function. All the examples I have seen here seem to apply to ajax or jquery. I.m still a beginner and I don't fully understand either yet, I just want a ...
0
votes
1answer
34 views

Creating Dynamic forms for awesome nested set association with in Ruby on Rails

Hi i am kind of rails newbie and i have two models Category and Product class Category < ActiveRecord::Base attr_accessible :name, :parent_id has_many :products acts_as_nested_set ...
0
votes
2answers
55 views

Rails 3 Image upload form submitting with http instead of AJAX

I am working on a form to submit it by AJAX instead of http. This is the form : <%= form_for(:image, :remote => true, :url => {:controller=> 'questions',:action => ...
0
votes
1answer
26 views

Show action in partial won't display in index view - rails

I have my show action within a partial called properties/_property_details.html.erb that I'm trying to display with ajax within the index action's view. properties/index.html.erb: <div ...
5
votes
1answer
123 views

How to trigger download with Rails send_data from AJAX post

I'm trying to use send_data to return a PNG image as the response for a ajax post request. How do I get the browser to trigger a download on the success callback? Details I'm generating a large ...
0
votes
1answer
22 views

Updating from Rails 2 to Rails 3 with JQuery AJAX

I am moving a site from Rails 2 to Rails 3 and need to replace the following deprecated methods, with JQuery: periodically_call_remote button_to_remote In the view, there is a button that when ...
0
votes
0answers
16 views

Multiple paths to Create ( RAILS, jquery)

this is my first attempt at ajaxy multi-step forms, and I'm sure I'm doin it the hard, wrong way. I have a Challenge to which I've added 5 javascript "pageviews" which guide the user to fill in the ...
0
votes
1answer
32 views

content_for in Ruby on Rails with ajax

I have a problem with the content_for in RoR, I have a remote call to the controller it contains the javascript update.js.erb render a partial _update.html.erb and within the partial content_for where ...
0
votes
2answers
28 views

ajax:succuess not called when submit a form remotly rails3

Basically, I want to submit a create new course form and handle the response using JQuery. My form like <div id="create_coursem"> <%= form_tag({:controller => "coursem", :action => ...
0
votes
1answer
32 views

rails 3.2 not detecting javascript changes?

i am a newbie in rails 3.2. now i have a problem following: i have 2 patials for showing highchart are _device_per_product.html.erb and device_per_platform.html.erb. and i render these by this way: ...
0
votes
3answers
26 views

How to use jQuery's .on with Rails ajax link?

I'm having a bunch of problems getting jQuery's .on to work with my Rails ajax link. Specifically, I've got this link: <div id="item_7_tools" class="item_tools"> <a ...
0
votes
1answer
52 views

Rails remote form submit not working

I'm trying to submit a form via ajax/js. When I set :remote => true it still submits via html. <%= form_for(@message), :remote => true, do |f| %> <%= f.label :Note_To_Doctor %> ...
0
votes
0answers
55 views

Jquery rails 3, move item from one div class to another div when it is checked

i have two div id=left and div id=right. now, there are multiple checkboxes with item listed in left div. when i select one check box then that item should remove from left div and added to right div ...
0
votes
0answers
101 views

Javascript wont run on jQuery Mobile until after refresh

I know that there are multiple threads on here already discussing this issue, but none of the suggestions posted so far have led me to a solution. So, I shall post my own. Basically I have a ...

1 2 3 4 5 27
15 30 50 per page