0
votes
0answers
11 views

How to destroy my sessions using devise logout in rails 3?

I am using rails 3 devise and i have created some HTML 5 web storages. Now, If user click on logout link I want to display a confirm message. And if user click on ok button i want to set my ...
0
votes
1answer
23 views

Backbone Rails: How to add javascript for HTML in application.html.erb

Hi I am new to backbone and I understand that you essentially route javascript to HTML pages, but I cant seem to route any javascript to the application.html.erb since it doesnt have a specific URL. ...
0
votes
0answers
29 views

Coffeescript .bind seems to be wrapped inside a function when compiled to js and is not called

I am trying to use a flot in a coffeescript .The returned javascript wraps all the methods in a function call and because of that I am not able to use the .bind event. $(this).bind 'plothover', ...
0
votes
0answers
23 views

Boolean Checkbox to issue String Value

I am currently passing some values to hidden fields via buttons and some javascript. I want to somehow transition the values into my controller to protect them from being manually over written. Is ...
0
votes
0answers
10 views

Rails multistep form with ajax modification

I am following Railscasts #217 and I have been able to make everything work using html protocol the only issue is that I need it to use ajax protocol instead. My question and code is very similar to ...
0
votes
1answer
29 views

How to manage views with AngularJs and Rails

I am starting to use AngularJs on a rails app. And I wanted to know how to manage communication between rails and angularjs. I wanted to generate templates with rails and then angularjs will execute ...
0
votes
0answers
9 views

Uservoice Widget for Rails 3 App

I'm having trouble displaying the Uservoice widget on my page. I copied the javascript code from the Uservoice admin, converted it to HAML then pasted on to my app: layouts/_uservoice.html.haml ...
0
votes
1answer
26 views

Passing data from rails to js

I am following the railscast tutorial on nested forms, but the code seems quite old and I'm interested in using modern techniques.The problem is that I want to generate a link which will as response ...
0
votes
1answer
28 views

How to include & combine all controller specific javascript in rails?

I am using Rails 3.2.1 where I have to include few controller and action specific javascripts which I am doing using a javascript_template_manager.html.haml and calling this at the bottom of the page. ...
1
vote
1answer
23 views

Ruby 3 How to get username and password from Ruby app DB and post them to Joomla admin login

i have a model in my RoR app. Two of the attributes of this model is username and password, which are the login details of an already installed Joomla site. I would like to use a form in RoR app and ...
0
votes
1answer
17 views

RAILS 3: How can I reload a partial?

I have a principal view. Inside it I have a button which render a partial with this JS code: $('#add_more_lines_btn').click(function () { $("#trees_details").append("<%= escape_javascript( ...
0
votes
1answer
12 views

Why the check box in simple_form view always returns 1 when being checked or unchecked in rails 3.2?

A checkbox (need_delivery) is used to dictate if next 2 text boxes are showing or not. Those 2 text boxes are wrapped in div with id task_request_delivery. Here is the code in simple_form view ...
0
votes
0answers
9 views

prevent DataTables from resetting scroll position on ajax reload

I'm using datatables with an ajax source to populate a table in my Rails app. The problem I'm having is that when the reload function is called (I have a timer set to call it every two seconds) the ...
0
votes
0answers
17 views

set_timezone error for scottwater/detect_timezone_rails

I gem installed https://github.com/scottwater/detect_timezone_rails I want my web app to detect users timezone automatically. Well, I keep getting this error Uncaught TypeError: Object [object ...
0
votes
0answers
20 views

jquery not loading (tokeninput) in Rails app

I'm trying to follow along with the instructions on how to implement jquery-tokeninput here: How to use jquery-Tokeninput and Acts-as-taggable-on I am trying to attach tags to a "post". I can use ...

1 2 3 4 5 84
15 30 50 per page