[Rails] form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Hello all, I'm using a form_remote_tag as: % form_remote_tag(:update=statdiv,:url = { :controller=:ticket,:action = :status }) do % table width=100% height=100% class=loginbox tr td E-mail /td td %= text_field 'ticket', 'email' ,'id'='email' ,

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Siddick Ebramsha wrote: I think, the /ticket/status.rhtml contain a tag with the id as statdiv. Check-it-out. Thanks for the reply. I tried it but things are the same :( The div does not get updated... -- Posted via http://www.ruby-forum.com/.

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Siddick Ebramsha wrote: I am not Giving the correct solution, but it will work. Solution :- form_remote_tag(:update=statdiv,:url = { :controller=test,:action = status }, :before = $('statdiv').update(''); ) Hey thank you so much for your solution but I got it working by: %

[Rails] Lightbox popup on ajax pages....

2009-03-26 Thread Jeba Momin
Hi, I'm using lightbox.js for displaying chromeless popup windows. I have a main page on which I have javascript_include_tag and stylesheet_link_tag to include lightbox. Calls to the lightbox popups from this main page work perfectly... Butcalls to the lightbox popups from pages which are

[Rails] gem install blackbook on centos error

2009-03-13 Thread Jeba Momin
Hello, I'm trying to install the blackbook gem on my m/c with centos , but i get the following error: Building native extensions. This could take a while... ERROR: Error installing blackbook: ERROR: Failed to build gem native extension. /opt/ruby-enterprise-1.8.6-20090201/bin/ruby

[Rails] Re: gem install blackbook on centos error

2009-03-13 Thread Jeba Momin
Charles Johnson wrote: On Fri, Mar 13, 2009 at 8:11 AM, Jeba Momin rails-mailing-l...@andreas-s.net wrote: Exactly the same error message? (Sorry about asking that.) Cheers-- Charles Yes..exactly the same error message And I don't have the privileges to install YUM on the m/c

[Rails] Re: How to pass current value of form field in link_to?

2009-03-06 Thread Jeba Momin
John Yerhot wrote: try this: %= link_to Preview Post, {:action = :preview, :id = @topic.id}, {:onclick = this.href +='?body='+encodeURIComponent($F ('id_of_the_form_element')); return true, :id = 'link', :target = _blank} % Hi John, I have a similar requirement. I need to pass the value

[Rails] Re: How to pass current value of form field in link_to?

2009-03-06 Thread Jeba Momin
Joe Peck wrote: Muchas gracias, that is close to perfect. The only problem is if I hit Preview Post multiple times, it keeps adding onto body, but I can fix that problem. It's times like these that I realize I need to learn more javascript. Hi Joe Can u please share wid me how did u

[Rails] How to Get value of text_field ??

2009-03-05 Thread Jeba Momin
Hi, I have a text field as: %= text_field :contact ,:name,:class='roundRect',:id='name' % Then on click of a link I want to pass the value in this text field to a controller method. I do not want to use a form and form submit. I have the link as: a href =/main/search GO/a and to this 'search'

[Rails] Re: i18n with Rails 2.1

2009-02-27 Thread Jeba Momin
Jeba Momin wrote: MaD wrote: try specifying the source: gem update rails --source=http://gems.rubyforge.org other than that try to update your rubygems. Hey...I'm trying to update rails on another m/c now...and I'm getting the same error as before: C:\Front Endgem update rails

[Rails] Re: i18n with Rails 2.1

2009-02-27 Thread Jeba Momin
MaD wrote: http://gems.rubyforge.vm.bytemark.co.uk/gems/actionmailer-2.2.2.gem that address seems to be working. have you tried it again? Hey... It worked when I did this: C:\gem update rails --source=http://gems.rubyforge.org 'Front End' is my Rails application... When I try doing gem

[Rails] Re: Rails on Apache

2009-02-24 Thread Jeba Momin
Angappan Ayyavoo wrote: http://firstruby.wordpress.com/2007/03/21/deploying-rails-with-apache-on-windows-xp/ Hi. Why don't you try deploying your application using phusion passenger(mod-rails)??? It uses apache server and is very easy to use.. The only catch is that it is not available for

[Rails] How to...Have a proxy URL...

2009-02-24 Thread Jeba Momin
Hi.. My application can be accessed at: http://localhost:3001/main/home?locale=en-US I'm running it on mongrel server.. Also I need to pass the locale parameter...only the first time... But I want my URL to be more user friendly as: http://myapplication.com Can anyone please tell me how do I

[Rails] How to sort select tag options?

2009-02-17 Thread Jeba Momin
Hi, I have a select tag as : %= select(:feedbacks, :directedto , {Select One=none,Business contact=Business Contact,Technical support=Technical Support,Payment Help=Payment Help},{ :selected = none}, {:class=field, :style=width:192px;}) % I want the select options in the drop down to

[Rails] Re: How to sort select tag options?

2009-02-17 Thread Jeba Momin
MaD wrote: problem is that you are using a hash, which have no guaranteed order. try an array like this: %= select(:feedbacks, :directedto, ([[Select One, none], [Business contact, Business Contact], [Technical support, Technical Support], [Payment Help, Payment Help]]),

[Rails] i18n with Rails 2.1

2009-02-12 Thread Jeba Momin
Hi. I'm currently using Rails 2.1. But i want to use i18n to internationalize my rails application. I'm trying to install rails 2.2 using: gem update rails but it gives me an error... Can anyone please suggest..how do I do this??? Thank You. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: i18n with Rails 2.1

2009-02-12 Thread Jeba Momin
Mathieu Rousseau wrote: Maybe a little more detail would help... OS? Error? On Thu, Feb 12, 2009 at 10:56 AM, Jeba Momin OS:windows XP Error: ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response ( The request is not supported. ) 500 (http://gems.rubyforge.v

[Rails] Re: i18n with Rails 2.1

2009-02-12 Thread Jeba Momin
MaD wrote: try specifying the source: gem update rails --source=http://gems.rubyforge.org other than that try to update your rubygems. Hey.. Thank You so much... that worked for me... Thanks again... -- Posted via http://www.ruby-forum.com/.

[Rails] DOM Popup kit error

2009-02-11 Thread Jeba Momin
hi, I'm using the DOM Popup kit to display chromeless popup windows in my application. But I'm getting a javascript error as: Object.extend is not a function. at the line: initialize: function(popup, link) { var options = Object.extend({ modal: false, effect: 'fade',

[Rails] Re: Using Soap4R and ActionMailer in one script

2009-02-05 Thread Jeba Momin
Erik wrote: Hi Has anyone managed to get these two to work together in one script? I get which I guess is caused by both defining a similar send method ? Soap4r seems to continue to work with ActionMailer there, but ActionMailer just raises the Error once I include the soap4r code.

[Rails] Re: Activate a gem..

2009-02-04 Thread Jeba Momin
Thomas r. Koll wrote: Hi, Try this in your config/environment.rb config.gem actionmailer, :version = '2.0.2' If you wanna use 2.0.2 for the whole app then it's RAILS_GEM_VERSION = '2.0.2' ciao, tom -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the

[Rails] Re: ActionWeb Service not working

2009-02-04 Thread Jeba Momin
Alex Le Bescond wrote: Hi Jeba, I am using Rails 2.2.2 and the actionwebservice gem. To manage to use this gem, I uninstall all the previous actionwebservice gem on my local machine. Then I download the last actionwebservice repository on the github

[Rails] How to make a call to an applet in RoR?

2009-02-03 Thread Jeba Momin
Hi.. I need to call a java applet from my rails application.. Can anyone please help and tell me..how do I do it Thank you so much... -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: How to make a call to an applet in RoR?

2009-02-03 Thread Jeba Momin
Julian Leviston wrote: What do you mean by call? Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 04/02/2009, at 4:57 PM, Jeba Momin rails-mailing-l...@andreas- On the click of a link..I want a java applet to be opened moreover..I want to pass some

[Rails] Re: How to make a call to an applet in RoR?

2009-02-03 Thread Jeba Momin
Julian Leviston wrote: Yep. Put the applet into public and reference it like normal. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 04/02/2009, at 5:16 PM, Jeba Momin rails-mailing-l...@andreas- does that mean..I should use the applet tag from html

[Rails] Activate a gem..

2009-02-03 Thread Jeba Momin
hi.. I have gems actionmailer 2.0.2 and actionmailer 2.1.0 both installed an my m/c.. But I want the gem actionmailer 2.0.2 to be used by my rails application.. How do I do this??? Thank you.. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] ActionWeb Service not working

2009-02-02 Thread Jeba Momin
Hi... I'm using Actionwebservice::Struct to pass complex elements to my webservice calls... I've installed the actionwebservice gem and made changes in environment.rb as told at http://fiatdev.com/2007/05/31/making-actionwebservice-work-with-edge-rails .. But at i get an error at server startup

[Rails] Re: Help....Paginating_find

2009-01-26 Thread Jeba Momin
Hey Luke... Thank you so much for your help That solution worked like a charm Thanks again... Luke Pearce wrote: Use ruby script/console in a command prompt to try things out... c = Company.find(:all, :page = {:current = 1, :size = 1}, :limit = 1) = #PagingEnumerator:0x5d29880

[Rails] Help....Paginating_find

2009-01-22 Thread Jeba Momin
Hi everyone, I'm using the paginating_find plugin to give pagination to my views... It works greatbut Even if there is a single page in the listit gives me a pagination linkwhich I don't want...!!! I need some help to know- how to check whether there is a only one page in the

[Rails] paginate_by_sql giving errors

2009-01-15 Thread Jeba Momin
Hi, I'm using paginate_by_sql to have pagination for my list views as my queries have joins on multiple tables. I have included the code into my application.rb , and in the controller I have: @discipline_pages, @disciplines = paginate_by_sql(Discipline,query,2) But I get error as: wrong number

[Rails] Re: paginate_by_sql giving errors

2009-01-15 Thread Jeba Momin
. The error occurred while evaluating nil.[] app/controllers/application.rb:63:in `paginate_by_sql' app/controllers/discipline_controller.rb:140:in `list' Where am I going wrong... Can someone please help... Thanks. Jeba Momin wrote: Hi, I'm using paginate_by_sql to have pagination for my list

[Rails] RoR, Apache2, fcgid and ubuntu...

2009-01-06 Thread jeba . momin
Hi. I'm trying to deploy my rails application on ubuntu server using apache2 and fcgid..but have not been successful.. I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem... I am able to start apache successfully and view the Aptana RadRails welcome page..But giving my controller's name gives