Tagged Questions
0
votes
0answers
15 views
How to make a “contact by email” / “inmail” for each user in Rails?
Its hard to explain, but in Gumtree, the listings site (www.gumtree.co.za) when you find something you like to buy from an user/advertiser you can send the user a email (inmail) via the site without ...
-1
votes
1answer
33 views
A bit lost with Rails 3 and javascript
I'm working on my first rails application using
Rails 3.2.8
ruby 1.9.3p392
It's very entertaining and I've been learning a lot. I remain though very much confused on how to use javascript in my ...
0
votes
1answer
19 views
How to apply bootstrap modal call to an image tag?
I've got an image display page. I want to add a modal with a larger version of the image. I have created a button according to the bootstrap instructions that does the job:
<button type="button" ...
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
0answers
9 views
ember.js updated - options.options.types is undefined
Set up:
DEBUG: -------------------------------
DEBUG: Ember.VERSION : 1.0.0-rc.5
DEBUG: Handlebars.VERSION : 1.0.0-rc.4
DEBUG: jQuery.VERSION : 1.9.1
ember-data.js: Last commit: 3981a7c (2013-05-28 ...
1
vote
1answer
29 views
Filters being ignored in jquery-datatables-rails
I have used jquery-datatables-rails to present some information for my index and have added in filters following this. However the datatable appears to be ignoring the filters and they are not shown ...
0
votes
1answer
28 views
Filtering a table created from a database
I have a table of announcements being created from a database.
I am trying to filter this table into categories based on the 'type' column of the database.
The database table has a column which ...
0
votes
0answers
25 views
Javascript + Rails not working on Heroku
I have a page that works perfect on my dev environment but not on production server (Heroku)
Here is the code
jQuery(function($){
$('.bar2').mosaic({
animation : 'slide' //fade or slide
...
1
vote
0answers
21 views
How can I serialize Ruby's TZInfo data?
I have a Rails application that, like all Rails applications, uses Ruby's TZInfo library for time-zone information. This library uses Olson-style information, but it the implementation doesn't ...
1
vote
1answer
25 views
Rails assets not available on production
I have this specific issue. On a (LARGE) rails setup I have a backbone project in /app/assets/reader/. All of my javascript assets are precompiling dynamically into reader.js, this works fine. My i10n ...
0
votes
1answer
44 views
Select onchange not calling function in rails 3
I am trying to use a select box to display a number of items. My select tag contains is written like this:
<%= select_tag "number_of_pets", options_for_select(allowed_pets_options, ...
1
vote
0answers
46 views
Render ERB with underscore templates without displaying in browser
Am trying to generate a PDF from a HTML file which itself is generated from dynamic content. So there is a controller action "generate_pdf" which takes HTML content and renders a PDF. The pdf ...
0
votes
1answer
39 views
Where do I add the visibility toggle in my JavaScript?
I have seen other javascript toggle questions on SO
But I am having trouble adding this into my method. I can't wrap my head around where I should drop it in to make it work.
Here is the JavaScript ...
0
votes
0answers
28 views
.slideToggle() in rails app not working
I am trying to add some javascript to my rails app. I am trying to do something similar to the way twitter handles youtube links in a user's tweets (when a user clicks on the tweet/video the tweet ...
0
votes
0answers
22 views
Error messages ruby on rails tinybox
I am new to Ruby on Rails. How should I display an error message in tinybox using this:
<%= error_messages_for(:user, :message => nil, :header_message => 'There were problems with ...