[Rails] form_remote_tag does not update div
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' , :size=30,:maxlength=30,:class=field % /td /tr tr td %= submit_tag View Status ,:class=bttn ,:onclick=return statuscheck(); % /td /tr /table %end % div id=statdiv /div The problem I'm facing is that the from_remote_tag just inserts the /ticket/status.rhtml text into the 'statdiv' div each time instead of updating it. It does not clear the 'statdiv' each time View Status button is pressed.So if there is text from the previous from submit in 'statdiv', it remains as it is and new text is inserted above it into the 'statdiv'. What I want is that the 'statdiv' should be cleared each time of its old text. Is from_remote_tag not the right option for this??? Please help. Thank you. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: form_remote_tag does not update div
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/. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: form_remote_tag does not update div
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: % form_remote_tag(:url = { :controller=:ticket,:action = :status },:update=statdiv) do % What I needed to do is to specify the :url before the :update... :) Thanks anyways. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Lightbox popup on ajax pages....
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 called by ajax(using link_to_remote) from the main page do not work...:( They work like simple link_to's. Even if I write the javascript_include_tag and stylesheet_link_tag to include lightbox again in the ajax pages..it does not work!!! Can someone please tell me how do solve this Thank you -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] gem install blackbook on centos error
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 extconf.rb install blackbook checking for #include libxml/parser.h ... yes checking for #include libxslt/xslt.h ... no libxslt is missing. try 'port install libxslt' or 'yum install libxslt' *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/opt/ruby-enterprise-1.8.6-20090201/bin/ruby --with-xml2-dir --without-xml2-dir --with-xml2-include --without-xml2-include=${xml2-dir}/include --with-xml2-lib --without-xml2-lib=${xml2-dir}/lib --with-xslt-dir --without-xslt-dir --with-xslt-include --without-xslt-include=${xslt-dir}/include --with-xslt-lib --without-xslt-lib=${xslt-dir}/lib Gem files will remain installed in /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/nokogiri-1.2.1 for inspection. Results logged to /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/nokogiri-1.2.1/ext/nokogiri/gem_make.out Please can someone help me solve this Thank you -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: gem install blackbook on centos error
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. So can't even do that... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: How to pass current value of form field in link_to?
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 of a text field with link_to What I'm doing is: %= link_to Go, {:controller='main',:action='searchcontc'},:onclick = this.href +='?uname='+encodeURIComponent($F('name')); return true % But this doesn't work properly. The first time I click the link it redirects to: http://localhost:3000/main/searchcontc And on the second click it goes to: http://localhost:3000/main/searchcontc?uname=value_of_text_filed Can please help me..and let me know how do I correct this... Thank you. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: How to pass current value of form field in link_to?
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 solve ur problem??? I'm too facing d same problem. The parameter gets added every time I click the link.. How did u correct it??? Thank you... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] How to Get value of text_field ??
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' method I want to pass the text field value How do I do this??? Thank you... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: i18n with Rails 2.1
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 --source=http://gems.rubyforge.org Updating installed gems Updating rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response ( The request is not supported. ) 500 (http://gems.rubyforge.v m.bytemark.co.uk/gems/actionmailer-2.2.2.gem) Please can someone tell me..where am I going wrong Thank You... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: i18n with Rails 2.1
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 update from within my rails application...only then I get the error...!!! Anyways... Thanks a lot for your help.. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Rails on Apache
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 windows You can find installation steps at... http://www.modrails.com/install.html -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] How to...Have a proxy URL...
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 this??? Thank You.. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] How to sort select tag options?
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 appear in the same order as I have written them in the code But...this does not happen..and the options appear in any random order.. Can anyone please help me..as to how should I sort my select options.. Thank you... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: How to sort select tag options?
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]]), {:selected = none}, {:class=field, :style=width:192px;}) % Thank You so much... That did the trick... Thanks again... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] i18n with Rails 2.1
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/. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: i18n with Rails 2.1
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 m.bytemark.co.uk/gems/rails-2.2.2.gem) -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: i18n with Rails 2.1
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/. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] DOM Popup kit error
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', hidden: true, closebox: 'popup_closebox', // CSS class name of click-to-close elements. draghandle: 'popup_draghandle'// CSS class name of drag handle elements. }, arguments[2] || {}); I read a solution for this that the popup.js file should be loaded at the last. But that didn't work.. Can anyone please suggest..how can I solve this error... Thank You. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Using Soap4R and ActionMailer in one script
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. Any ideas? Erik Hey... I'm facing the same problems..making actionmailer and soap4r to work together Did you get any solution for it... Please let me know... Thank you.. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Activate a gem..
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 world http://github.com/TomK32 Hey.. Thank you so much... that works gr8..!!! thanks again.. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: ActionWeb Service not working
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 http://github.com/datanoise/actionwebservice/tree/master . Clone the repository any where on your local machine : git clone git://github.com/datanoise/actionwebservice.git Then go to your new actionwebservice directory and execute the command ruby setup.rb This will install the gem in your site_ruby directory. And you can now use the actionwebservice features in your Rails application. Don't forget to add these few lines in your environment.rb : Rails::Initializer.run do |config| ... config.load_paths += %W( #{RAILS_ROOT}/app/apis ) ... end require 'action_web_service' I hope that my configuration of actionwebservice with Rails 2.2.2 has helpt you. Hey.. thank you so much for your help... I'll surely try this solution... Thanks again.. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] How to make a call to an applet in RoR?
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 Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: How to make a call to an applet in RoR?
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 parameters to this applet Is this possible.. Thank you... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: How to make a call to an applet in RoR?
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.and keep my applet.class file in the public folder Thanks... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Activate a gem..
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 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] ActionWeb Service not working
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 as... c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependenci es.rb:492:in `const_missing': uninitialized constant ActionWebService::Base::Rel oadable (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/action_web_service/base.rb:36 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re quire' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_suppo rt/dependencies.rb:509:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_suppo rt/dependencies.rb:354:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_suppo rt/dependencies.rb:509:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/action_web_service.rb:39 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge m_original_require' ... 31 levels... from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:3 9 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re quire' from script/server:3 Please someone help me out of this.. Thank you so much -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Help....Paginating_find
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 @page_count=1, @first_page=1, @size=1, @page=1, @page_size =1, @callback=#Proc:0x06184...@c:/../lib/paginating_find.rb:82, @last_page=1, @stop_page=1, @auto=false c.page_count = 1 In your view check that @your_collection.page_count 1 before you call the paginating find partial that generates the pages. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Help....Paginating_find
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 result...so that I don't print the links Thank You -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] paginate_by_sql giving errors
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 of arguments (4 for 2) app/controllers/application.rb:63:in `initialize' app/controllers/application.rb:63:in `new' app/controllers/application.rb:63:in `paginate_by_sql' app/controllers/discipline_controller.rb:140:in `list' At application.rb:63 I have: object_pages = Paginator.new self, total, per_page,params['page'] Please can someone help me with this... Thanks in advance. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: paginate_by_sql giving errors
Hey, I was able to solve the earlier error by changing application.rb:63 to: object_pages = Paginator.new self, total, per_page,@params['page'] But now I have another error which says... You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. 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 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 of arguments (4 for 2) app/controllers/application.rb:63:in `initialize' app/controllers/application.rb:63:in `new' app/controllers/application.rb:63:in `paginate_by_sql' app/controllers/discipline_controller.rb:140:in `list' At application.rb:63 I have: object_pages = Paginator.new self, total, per_page,params['page'] Please can someone help me with this... Thanks in advance. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] RoR, Apache2, fcgid and ubuntu...
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 me a 404 error... I have made required changes in my /public/.htaccess and /public/dispatch.fcgi filesas= .htaccess(w/o comments) AddHandler fastcgi-script .fcgi AddHandler fcgid-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI dispatch.*fcgi* RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] ErrorDocument 500 h2Application error/h2Rails application failed to start properly dispatch.fcgi #!/usr/bin/ruby require File.dirname(__FILE__) + /../config/environment require 'fcgi_handler' require 'rubygems' require_gem 'fcgi' RailsFCGIHandler.process! Also..I have added the follwing lines to my /usr/local/apache2/conf/ httpd.conf file... Directory /home/jeba/CRSA/ AllowOverride all Order allow,deny Deny from all Allow from localhost /Directory LoadModule fcgid_module /usr/local/apache2/modules/mod_fcgid.so AddHandler fcgid-script .fcgi IPCCommTimeout 40 IPCConnectTimeout 10 DefaultInitEnv RAILS_ENV production SocketPath /tmp/fcgidsock VirtualHost *:80 DocumentRoot /home/jeba/CRSA/public ServerName localhost ErrorLog /var/log/apache2-error_log CustomLog /var/log/apache2-access_log common Options Indexes ExecCGI FollowSymLinks RewriteEngine On /VirtualHost I have checked that my VirtualHost works perfectly...but it doesn't seem to start my rails application Can someone please tell me where am I going wrong Thanks in advance.. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---