Displaying 20 results from an estimated 60000 matches similar to: "can't get jquery_ujs to work"
2012 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as
simple as posible. And I''m trying to put some custom css and js to my
own index.html.erb (not public/index.html.erb), I inluded this on the
layout file:
layout file:
<!DOCTYPE html>
<html>
<head>
<title>Volei</title>
<%= stylesheet_link_tag "application", :media =>
2012 Nov 02
2
jquery error in production precompiled
In my rails project, for production precompile
I do : rake assets:precompile RAILS_ENV=production
But it not work for jquery.
In my firegub console, I got the error
“ReferenceError: JQuery is not defined “
at production.rb
# Disable Rails''s static asset server (Apache or nginx will already do this)
config.serve_static_assets = true
# Compress JavaScripts and CSS
2012 Jan 01
3
'require_tree .' does not seem to be including the available *.js files as expected. Why?
Hi, all,
Happy new year :)
Referring to http://guides.rubyonrails.org/asset_pipeline.html, it
seems that ''require_tree .'' in myapp/app/assets/javascripts/
application.js will include all *.js files in the myapp/app/assets/
javascripts/.
I have a few other *.js files in this directory : parts.js, makes.js
and categories.js.
Here''s an extract from the html file I
2011 Jul 07
2
Rails 3.1 + jQuery + jQuery UI = data is null
Trying to get jQuery UI to work with my rails 3.1 setup, but i keep
getting errors that i cant see posted anywhere, this is driving my
insane so please have a look =>
[application.js]
// This is a manifest file that''ll be compiled into including all the
files listed below.
// Add new JavaScript/Coffee code in separate files in this directory
and they''ll automatically
// be
2011 Jul 19
3
What does "require tree" do in Rails 3.1?
In Rails 3.1....
This is my application.css:
/*
*= require_self
*= require_tree .
*/
This is my application.js:
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .
What does the "require_tree ." do?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web
2012 Jun 28
2
Best practice on Javascript and rails
Hi, I get constantly nervy whenever trying to implement any javascript /
jquery in rails, basically because I''m not sure where to put things in
the project!
I know the people at rails have thought long and hard about how to best
structure an app, so I''d like to learn the correct way.
I''m using rails 3.2, ruby 1.9.3
/////////////
1st situation - using a gem to include
2011 Nov 25
4
Sprockets File not Found Exception.
Hi Everyone,
I was trying out some sample applications for Rails. I created some
controllers and pages. But when i try to access one of them i get an
exception on the webpage:
---------------------------------------------------------------------
Sprockets::FileNotFound in Pages#home
Showing c:/railscode/test_app/app/views/layouts/application.html.erb
where line #6 raised:
couldn''t
2011 May 25
1
trouble using jQuery in Rails 3.0.7
I''ve tried to install JQuery a couple of times now, and I''ve followed
the steps for Rails UJS mentioned here:
https://github.com/rails/jquery-ujs
The last time I went ahead and added jQuery UI as well:
$ rails generate jquery:install --ui
remove public/javascripts/prototype.js
remove public/javascripts/effects.js
remove public/javascripts/dragdrop.js
2010 Mar 26
4
How to calculate per_page value based on browser window size for will_paginate
def self.per_page
20
end
Any suggestion on how I can calculate this value base on the size of
the browser window?
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2011 Sep 01
7
couldn't find file 'jquery' rails 3.1 stable mountable engine
When I create a new engine in Rails 3.1 stable and then access the dummy
app or the engine I get an error say that the app can''t find jquery.
I''ve created the engine using
rails plugin new coffee --mountable
I''ve also created a basic controller in the engine and the dummy app. If
I remove the javascript include tag, everything works. But with the tag
there it just
2012 Mar 07
1
link_to with :remote=>true works when bound to "click" but not "ajax:beforeSend"
Hi. I am trying to do an ajax link in Rails 3.2.1 and jQuery. I am
loading jquery.js and jquery_ujs.js. In my document ready, if I bind
to the event "click," clicking the link fires an event, but if I click
to ajax:beforeSend, it doesn''t. Nothing happens when you click the
link in JQuery. The event does go to the controller, though.
Works:
$(document).ready(function(){
2011 May 30
5
rails habtm checkboxes with jquerymobile
Hi guys, I have a habtm association working properly. My application
consists of both a desktop and a mobile version.
My mobile version is made with jquerymobile and I would like my checkboxes
in the edit form to look like the checkboxes shown in
http://jquerymobile.com/demos/1.0a4.1/#docs/forms/forms-checkboxes.html.
My desktop code is the following:
<%= check_box_tag
2010 Apr 10
2
Need a dropdown having "more.." option
I have a collection of products that I am showing in a dropdown. Now
at the first view it will show only first 10 products in the dropdown
with an option "more..." at last. if user clicks the "more..." he can
see all the following products in that dropdown list (this is not any
ajax request, just javascript show/hide). Of course the more... option
will hide when showing all
2010 Dec 20
2
The Rails3 way for in-place editing
Currently I want to implement in-place editing directly on the index-page
(for the sake of learning just xx products with a name to be edited).
These are my favorite links from yesterday''s research (for the archives):
*On the spot is a Rails3 compliant unobtrusive javascript in-place-editing
plugin: http://rubygems.org/gems/on_the_spot
2011 Aug 29
7
:onchange in rails 3
Hi,
Anybody know why :onchange works here...
<%= select_tag "Minisections",
options_from_collection_for_select(@minisections, :id, :title, :selected
=> @minisection.id), {:onChange => "{alert(''Minisection has been changed
to x !'')}"} %>
but NOT here (to call a function)...
<script type="text/javascript">
function xyz() {
2011 Oct 21
20
How to transform my html form into a rails 3 form
Hi,
I have the following code working in a rails 3 view, but it is
unfortunately not pure rails code!
<% @filter1 = "tr.show1,tr.show2" %>
<% @filter2 = "tr.show1" %>
<% @filter3 = "tr.show2" %>
<form>
<p>
<input type="checkbox" value=<%=@filter1%> onclick="$
(this).is('':checked'')
2011 Jul 27
20
Rails, jquery and Ajax
How do I make an ajax call and then update a div with a partial? I''ve
tried this but it''s not working. Comment is created but the partial is
not loaded.
//view
<a href="#" id="testlink">Testlink</a>
<div id="commentlist">
</div>
//controller
def new
@comment = Comment.new
@comment.save
2012 Mar 04
5
moving form validation to client-side
Hi I know with javascript we can validate the input of a form on the
client, is there an easy way to specify this in rails? I am thinking
the javascript code getting generated using some sort of DSL?
--
Kind Regards,
Rajinder Yadav
SafetyNet Test Driven Development
http://safetynet.devmentor.org
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Sep 08
10
Image upload with progress bar
Hello there,
I try already third day to find a way, how to improve my upload about
progress bar. I use for upload of images the paperclip gem and in my app
jQuery library.
Could anyone give me, please, any help or tip, how to do? I tried to
search, read a discussions, but I still don''t know, how to do...
So, thank you so much for every advice.
--
Posted via
2012 Sep 10
4
Rails error: invalid byte sequence in UTF-8
Hello,
i have a app on rails 3.2.1 and i use a jquery lib called jQuery Timelinr
0.9.5: http://www.csslab.cl/2011/08/18/jquery-timelinr/
but, when i use it on a .erb view, i got a error:
Showing *
/home/carlos.ribeiro/projetos/amarribo/app/views/conheca/historico.html.erb*
where
line *#59* raised:
invalid byte sequence in UTF-8
Extracted source (around line *#59*):
57:
58: <%=