1
vote
1answer
15 views

Rails + Javascript: How do I create a button that slides/changes a form from left to right?

For example, there's a form with 3 parts, A B and C. Initially the user can only see A. After filling out A and clicking a Next Button, the screen slides out A to the left and slides in B from the ...
0
votes
2answers
23 views

Controller is looking for HTML format instead of JS format (though we set :remote => true)

I have the following link_to: <%= link_to 'user_' + user.id.to_s, {:controller => 'admin', :action => 'view_user', :id => user.id}, :remote => true %> However, when I click that ...
0
votes
1answer
10 views

jquery, jquery_ujs with jquery-ui-rails gem

Since jquery is packaged with Rails 3.0, I'm using the jquery-ui-rails gem to get jquery-ui. Looks like jquery_ujs is not packaged with Rails (or jquery-ui-rails). And I can't independently include ...
1
vote
4answers
4k views

Jquery Get Element by ID Problem

$(function() { $(".form_new td select").change(function() { alert($('#new_school').id) }); }); I have the code above in my app. But It keeps on alerting "undefined." What am I doing wrong? ...
0
votes
2answers
20 views

Rails and jQuery: How to select input from a specific form

I have a rails app with a job model, and on the index page, each job has a form. I need to be able to access the specific form everytime the submit button is selected, so I can take the input for the ...
3
votes
1answer
67 views

Rails Jquery on Checkbox

I begin in Rails and i created an application. In this application , the admin is the only person who can create user, when he signup the others users , he can check an checkbox for choose if he ...
2
votes
1answer
56 views

scope on routes with mercury editor + rails 3

I'm checking mercury editor https://github.com/jejacks0n/mercury on small project. These is my routes.rb file Myapp::Application.routes.draw do mount Mercury::Engine => '/' scope '(:locale)' ...
0
votes
1answer
103 views

fineuploader doesn't display file chooser dialog

I'm having an issue using FineUploader in my rails application. If I use the drag & drop method to upload files it works perfectly, but if I click the input it doesn't show the explorer window. ...
1
vote
0answers
14 views

How to make a website like tryRuby, tryJquery, etc. (terminal inside your website)

I'm hoping to make a side project that implements a terminal inside of your website and create questions for other people a la codeschool, codeacademy, and treehouse. Making it look like a terminal ...
0
votes
1answer
22 views

tiny scrollbar and slim scrollbar (jQuery plugins) not working on Ruby on Rails

I wanted to include a scroll bar jQuery plugin in my Rails project, and I tried "Tiny Scrollbar" and "Slim Scrollbar", but none of them worked. Here is my codes in the view page (for "Tiny ...
6
votes
5answers
876 views

Add a JavaScript display to the Home page to count down from 140 characters. (Rails Tutorial, 2nd Ed, Chapter 10, Exercise 7)

This exercise was a bit tricky. Figured I'd post my solution to see if anyone did it differently or if there's anyone who knows a better way. I'm not sure on best practices for using the Asset ...
15
votes
4answers
13k views

Submit form in rails 3 in an ajax way (with jQuery)

I am a beginner in rails and jQuery. I have two separate forms in one page and I want to submit them separately in ajax way (with jQuery). This is how far I got. Can anybody add or fix this code to ...
0
votes
0answers
27 views

How do I get devise current_user using jQuery?

I'm have an app running with RoR and Devise gem. I'm trying to create an ajax and I need to pass the current_user logged in. How do I get it using jQuery? _addUser: function(map, marker) { var data ...
0
votes
0answers
15 views

Rails: Render a view to a JqueryTabs's contents

I've a problem that still have no idea to solve so far I've a simple view /thong_ke/tk_phong which will return the exact value when there no paramater set yet (start page) in Controller: def ...
0
votes
2answers
32 views

How to submit a form with ajax if two parameters are set

I have a simple rails form and want to submit the form when the two parameters are set without the click of a submit button. How can i write a simple jquery ajax request to do this. my form below is ...

1 2 3 4 5 113
15 30 50 per page