0
votes
0answers
10 views

Stripe token in a modal form is always an empty string

Trying to allow users to enter credit card details in a modal window. I have combed through this and cannot figure out why Stripe keeps setting the token as an empty string Stripe error while creating ...
0
votes
1answer
21 views

jQuery custom function w/ date.js

I'm trying to build a custom date.js function that (paired with bootstrap) will respond to each input... My function works for the FIRST item in a series of fields if I say $(".date-js").changeIt();, ...
0
votes
1answer
17 views

Put footer at bottom of either view or document, whichever is longer

I have a navbar-bottom on my app that I want to either be placed at the bottom of the view or the documnet, whichever is lower. I'm getting some weird behavior and can't work it out. Here is the ...
-1
votes
1answer
29 views

Jquery or Javascript - Regex Matching Elements by IDs and Changing Others With Similar IDs

An ".each do" loop is creating some html on a rails form. The loop creates checkboxes with IDs like "foo_1_blah", "foo_2_blah" as well as other elements with similar beginnings and matching numbers in ...
1
vote
1answer
26 views

Rails 3 - create multiple records using javascript

I have an array with some parameters dynamically generated in Javascript. After filling some fields and pressing submit I want to generate multiple records in DB which contains data from form field + ...
0
votes
1answer
32 views

Rails endless pagination - undefined local variable

I have UsersController and in this controller I am loading users' posts, something like this: def welcome @postss = Post.page(params[:page]).per_page(10) render 'users/show' end Then in ...
0
votes
1answer
23 views

rails js.erb does not get rendered

I have the following code in edit.html.erb <%= f.select(:newpages, @pages, { :include_blank => 'No newpage' }, :id => 'function', :multiple => true, :size => '7', :selected => ...
0
votes
1answer
25 views

How to show validations error on submit form via ajax?

My form is little complex, everything is on landing page welcome/index.html.erb. This form has two tabs: products and users. Under products tab there are features like: create new product show ...
0
votes
1answer
33 views

Best Practice For Mobile View in Ruby On Rails

Hi I am in this process of restyling a Rails application. I was wondering what the best practice is to making it mobile responsive. Should I be using mobile.html.erb files with the mobile_fu gem? ...
0
votes
1answer
24 views

Jquery change event not working in coffeescript

hey guys I have just try to implement my change event in coffeescript but its not working. Will any help me $('#subscription_id").on "change", -> console.log "Hello" outputs = $(this).val() if ...
1
vote
1answer
30 views

JQ work but only when i reload page

I try to do dynamic select box in ruby. JQuery looks like this: jQuery -> $('#person_state_id').parent().hide() states = $('#person_state_id').html() $('#person_country_id').change -> country ...
0
votes
2answers
27 views

passing ruby variables to javascript (Ruby on Rails)

I have a list of medicines and a list of vaccinations that I am extracting from tables medicines and vaccinations respectively. The list of medicines is of the format medicine_name and so is the list ...
0
votes
2answers
35 views

Change rails login route based on mobile device?

I have a very simple need - I have a mobile site already completely finished, it works fine once the user has logged in (the layout and all the pages render perfectly). The one thing I'm missing is ...
0
votes
0answers
17 views

Ruby on Rails with Showdown adding extensions error

I have this code directly from: https://github.com/coreyti/showdown I created an extensions dir and added twitter.js to it with the following code: var demo = function(converter) { return [ // ...
0
votes
1answer
24 views

How to find out if an element has an function attached or not?

There is a lot of these questions, but I just can't make it work. I have a page where some of the elements have a jQuery elements attached to it, and some dont. How can I check if an element have a ...

1 2 3 4 5 247
15 30 50 per page