Tagged Questions
0
votes
0answers
17 views
Embedding Records Nested 2 Layers in Ember
I recently posted a question which was resolved here regarding accessing Rails Relationships. The answer worked great and embedding records has worked fine for any single level nested attributes (The ...
0
votes
1answer
31 views
Parse JSON array of hashes into jQuery tokenInput
I have jQuery token input implemented for tagging purposes where a user can search for a tag or create a new one thanks to railscasts ep#382 & ep#258. Data comes from the tags.json url which is ...
0
votes
1answer
25 views
erb in coffeescript (Rails 3.2.13)?
I am using Rails 3.2.13.
After looking at some posts here, it looks like in order to use erb in CoffeeScript, your file just needs to have a .js.coffee extension, not .js.coffee.erb (weirdly).
...
0
votes
1answer
33 views
AJAX call to render partial in Rails 3
I have a user's dashboard page where the left side has a sidebar with links like Projects, Blogs, etc. I want to be able to click a link such as the "Projects" link and then in the main area, the view ...
0
votes
0answers
18 views
Converting map.js in Rails routes.rb to new Rails 3 DSL
I am try to convert an older DSL style routes.rb file in a project I am working on to the new DSL style used in Rails 3. Since most of it consists of regular routes, the conversion seems simple. Most ...
0
votes
1answer
22 views
Rails 3.2 - Ajax call when text field changes
I have a Rails 3.2.13 app with some Ajax on forms and links, using the remote parameter.
The problem is that i can't find in the docs how to do the same with text fields - the
remote parameter didn't ...
0
votes
0answers
20 views
Rails - https_redirect on ajax query ( works on non ajax )
Apologies for my english
I have one website with 2 "zones" : normal and admin and only the admin zone is under https protocol.
I have one filter in the application controller :
def https_redirect
...
1
vote
0answers
18 views
Rails jquery sortable list not saving
Sorting the list with javascript works fine, however when I refresh the page, the sorted list returns to its original position rather than saving. Looks like the POST request does not seem to be ...
0
votes
1answer
18 views
Using jQuery and LazyHighCharts in rails
I am using this method to create a pie chart.
I have it showing inside my View, and what I want to do is when I click on a slice of the pie chart, it would generate three more charts based on the ...
0
votes
1answer
29 views
Trying to understand Railscast episode 197 (related to previous post: #17094200)
I am trying to make this work for my page, but I need to understand the regular expression replacement. Can someone break this down for me?
function add_fields(link, association, content) {
var ...
0
votes
0answers
17 views
Facebook sharing returns internal server error
I am using client side facebook sharing feature, were I used the javescript to share the content to facebook, it was worked previousy well but now I am getting the Internal server error from facebook, ...
1
vote
4answers
65 views
Check all check box does not works the second time in Javascript
The check all check box first time checks and unchecks well but not at the second time. The code is as follows
HTML
<th align="left" width="25" style="color:#FFF; background-color:#3A4048">
...
0
votes
4answers
89 views
erb code is not working in javascript <script> tag
I have Post table with title and content attributes. I want to make auto complete textfield where user are suggested by Post title. I am trying to add jquery auto-complete in my rails application. I ...
0
votes
1answer
33 views
how to expand and collapase list
The following is working fine. But its only working for the first instance of the revenue other instance are just showing the list without collapse or expand. As the user clicks on the revene.Amount ...
0
votes
0answers
40 views
Javascript dom element being parsed as string
I am having an issue using JavaScript with rails. I am using getScript to load the js in a file called list.js.erb, in which is:
var info = '<%= j(items_collection(@order, @items_list)) %>'
...