similar to: how to pass javascript variable to controller

Displaying 20 results from an estimated 20000 matches similar to: "how to pass javascript variable to controller"

2010 Apr 29
5
cant run rake on hostmonster
hi i have setup my rails env on hostmonster but i cant run rake task.error is populated when try to run that the error is "Access denied for user ". But i can able to login into the mysql with the same user name password. anybody any ideas???? nirosh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2010 May 02
8
dev tool
Can anyone suggest a development tool for RoR? How is the plugin for Eclipse? -- 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
2010 Aug 30
3
paperclip gem install failed
when i''m installing paperclip gem its return err (i18n requires RubyGems version >= 1.3.6) the os is ubuntu 10.04 64bit -nirosh- -- 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
2010 Apr 29
10
How to install rails gems 2.3.5 on windows
Hi, When I try to add generator to controller, I got error as "Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed." Can somebody please let me know how to install rails gem 2.3.5 successfully on a
2010 Sep 20
5
Update to website not printing special Characters
I thought you might be interested in how far I have got with solving my problem with MySql(via phpMyAdmin) to website character_set problems. I thought I had solved the problem when my characters on my website started showing the special characters. This was a partial success though. When I went back to phpMyAdmin and entered new text the problem was the same, but reversed. What now happens is
2012 Oct 30
1
pass javascript date variable to rails controller as params
I have an application where jquery fullcalendar is implemented. On day click I need to pass the selected date as params to rails controller. When I alert the date inside dayclick function, I am getting the date in the format of "Tue Oct 30 2012 12:40:20 GMT+0530 (IST)".. But when I pass as params in jquery ajax to rails controller, it is passing blank. How do I get it in rails
2010 Jun 24
7
Yet more variable scoping pain.
Some days I wonder why I even bother with puppet. --- classes: - datacentre::new_york - role::appserver - elements::tfel0 environment: production: parameters: < set key/value pairs here > class ldap { < do some stuff that behaves slightly differently between different data centers > } class role::appserver { include ldap } So, I wanted to set some variables in the
2008 May 05
1
Passing values selected with onchange remote_function
How do i pass the value selected from a drop down selection and then extract it in rjs <% select("what", "hello", @selection, {}, {:onchange => remote_function(:url => "test", :my_variable => "hello again") } ) %> thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2007 Dec 05
4
render :update and controller private methods
Probably asked and answered, but... Why are controller private methods inaccessible inside the block passed to render :update ? This does not work: class MyController < ApplicationController def some_action render :update do |page| page.replace_html ''an_element'', some_private_method end end private def some_private_method return
2007 Nov 15
4
Using .find_by_sql for database/admin queries
I want to create an internal admin view to display the output of "show variables" from mysql. What''s the best approach do this? For example, I''m doing something like this: @variables = ActiveRecord::Base.find_by_sql "show variables;" Then, I get stuff like this back (227 elements in @variables) in script/console: >> @variables[0] =>
2010 Mar 09
9
Ajax-submit form on "check box onclick ": why this error?
Hi there, I need to have a checkbox which ajax-submits a form. The following code throws an error "index 112009 out of string". What''s wrong here? ============================================== <% form_remote_tag :url => { whatever_url } do -%> <%= check_box_tag ''whatever'', nil, whatever, { :onclick =>
2006 Jan 21
3
Passing ruby variable via remote_function (JavaScript)
Hi, Brand new to this so please excuse anything obvious that I don''t yet get. Here''s what I''m trying to do (This is all in a .rhtml file): As a simple test I create a local variable called ''localVariable'' and give it the string "Hello" like this; <% $localVariable = ''Hello'' %> Next I want to call a function
2006 Jun 15
0
Include JavaScript variable in <%= remote_function %> call?
How can I do this? For instance, something like: <script ...> function check_duplicate(name) { <%= remote_function :url => {:action => ''check_duplicate'', :name => name } %> } </script> Obviously the above is just a dummy mockup. I have much more complex (and complete) sections of code that need to accomplish a task like this. Anyone know of a
2010 Oct 20
2
How do i use button_to_function
Hii all , I am trying to create a button that, when clicked on, calls a method in a controller . I am thinking that button_to_function is good to use for that i made htnl viwe like <h1>File Upload</h1> <p><label for="upload_file">Select File</label> : <%= file_field ''upload'', ''datafile'' %></p>
2010 Jan 30
2
passing multiple objects with remote_function
Hey, I can successfully pass a single object from any form field to my controller via: Select Year: <%= collection_select("vehicle", "year", @availableYears, "year", "year", {:prompt => "Select a year"}, {:onchange => "#{remote_function(:url => {:action =>
2012 Nov 14
8
right click or Context Menu in ruby without javascript
Hi, This query is a replica of the link http://railsforum.com/viewtopic.php?id=51231. As I was unable to get any replies from the rails forum, I am posting the same here. I have developed an app using Rails 3. I have a table made to look like a calendar. I wanted to know if there were any methods or gems to acheive right click(context menu) action on the dates WITHOUT javascripts or
2009 Nov 20
3
Javascript Confirm for Form Value
How could I ask a user to confirm specific form input? EX: <%= f.submit ''Donate'', :confirm => ''Confirm your donation amount: ###amount###'' %> Where the ###amount### would be replaced with the amount entered in the form. Thanks, Dustin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2010 Dec 06
8
How to add facebook javascript sdk to rails app
Hey, i''m trying to add the facebook javascript SDK to my rails app. How do i do that in the application.html.erb file? -- Posted via http://www.ruby-forum.com/. -- 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
2010 Sep 22
3
how to remote function to get info from url in a javascript function
hey all I am working with a javascript function called Elabel, part of the Google maps api the Elabel has a function called setContents(html) i need to be able to call this function and get new html for it. ( the html is a table that displays weather data) here is what i have so far function replace_weather_table(){ zoomy = map.getZoom(); weather_table_one.setContents(new
2013 May 01
2
Is there any way to update the javascript when I reload the page using rails?
Hi, I need fix any bugs in a rails project. The problem is every time I change anything in javascript I have to make bundle exec rake rails_group=assets assets:clean RAILS_ENV=development and then bundle exec rake rails_group=assets assets:precompile RAILS_ENV=development and finaly restart the rails server. This way spend 10 min. Exists any other solution? -- You received this message