[Rails] Re: How to disable a item of select box

2009-11-02 Thread Priyanka Pathak
Brijesh Shah wrote: Hi I want to disable only one item of select box. I tried to used :disabled='item' but it disable select box itself. So anybody how to do this? Thanks Brijesh Shah Hi Brijesh, As per your need, i think you want to disable particular item from select box. so

[Rails] File not uploading properly

2009-11-02 Thread Raju Aralikatti
Hi all, I am using the following code to upload a file. views: %= file_field upload, 'file' ,:size= '30' % controller: file_path= #{RAILS_ROOT}/public/email_attachments/#{params[:upload][:file].original_filename} file = File.new(File.join(file_path), wb) file.write(params['file_' +

[Rails] Re: Couldn't find SalesOrder without an ID

2009-11-02 Thread Sijo k g
Hi Vishnu In the normal case the procedure is like create_table :sales_orders, :id = false do |t| t.integer :ordernumber, :primary = true end Now in the class SalesOrder you can define like set_primary_key ordernumber And also you have to write a before_create call back to set

[Rails] Re: Couldn't find SalesOrder without an ID

2009-11-02 Thread Conrad Taylor
On Sun, Nov 1, 2009 at 11:43 PM, Vishnu First rails-mailing-l...@andreas-s.net wrote: Sebastian von Conrad wrote: Vishnu, What's wrong with using ID as the primary key instead of ordernumber? I would strongly advise doing so; you will most likely save yourself (and others) current

[Rails] Re: How to do printing in ROR?

2009-11-02 Thread Conrad Taylor
On Sun, Nov 1, 2009 at 11:46 PM, Priyanka Pathak rails-mailing-l...@andreas-s.net wrote: As per your post, if you want to print page of application through rails than just give javascript:window.print(); on any label onclick. It will pop up the printer window based on your printer

[Rails] Re: nifty scaffolding and virtual attributes

2009-11-02 Thread Conrad Taylor
On Sun, Nov 1, 2009 at 9:19 PM, C K Kashyap ckkash...@gmail.com wrote: Hi, I was trying to get virtual attributes working for a model...but looks like with models generated by nifty_scaffolding the unknownattribute exception gets silently eaten ... can someone please tell me how to get it

[Rails] Re: Error in migrating the Postgres database

2009-11-02 Thread SMiX
put in config/environment.rb this string: config.gem postgres or another gem which you use On 29 окт, 07:52, madhuri godade madhurigod...@gmail.com wrote: Hello sir, I have installed gem to install is ruby-pg gem to install is postgres gem to install is postgres-pr But still getting

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Max Williams
Rick Lloyd wrote: One more point. You said that you followed the instructions for install - there are three different paths there and I know for a fact that the gem install... version will give you mislav- will_paginate. If, however, you build from a tar (or use git clone) the gemspec

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Max Williams
Conrad Taylor wrote: On Sun, Nov 1, 2009 at 5:54 PM, Rick richard.t.ll...@gmail.com wrote: :update_sources: true What's odd is that i'm installing it following the instructions on the mislav-will_paginate homepage, wherer they say to do gem install will_paginate, after setting the gem

[Rails] Re: How to do printing in ROR?

2009-11-02 Thread Priyanka Pathak
Conrad Taylor wrote: On Sun, Nov 1, 2009 at 11:46 PM, Priyanka Pathak rails-mailing-l...@andreas-s.net wrote: Hi, this isn't a Rails related question but here's one way to do it in Javascript: http://www.web-source.net/web_design_tips/print_web_page_button.htm Good luck, -Conrad

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Max Williams
Rick Lloyd wrote: If you've got both sites in there you should see results from gem list mislav-will_paginate -r and gem install mislav-will_paginate. thanks Rick - that fixed it! I didn't have github in there. So, i fixed it thus: gem sources -a http://gems.github.com/ sudo gem install

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Conrad Taylor
On Mon, Nov 2, 2009 at 1:24 AM, Max Williams rails-mailing-l...@andreas-s.net wrote: Conrad Taylor wrote: On Sun, Nov 1, 2009 at 5:54 PM, Rick richard.t.ll...@gmail.com wrote: :update_sources: true What's odd is that i'm installing it following the instructions on the

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Conrad Taylor
On Mon, Nov 2, 2009 at 1:24 AM, Max Williams rails-mailing-l...@andreas-s.net wrote: Conrad Taylor wrote: On Sun, Nov 1, 2009 at 5:54 PM, Rick richard.t.ll...@gmail.com wrote: :update_sources: true What's odd is that i'm installing it following the instructions on the

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Max Williams
Conrad Taylor wrote: On Mon, Nov 2, 2009 at 1:24 AM, Max Williams rails-mailing-l...@andreas-s.net wrote: version, but it's not called mislav, and that's my problem. tumble. I'm using gem v 1.3.5 tumble is an option added by gemcutter to the gem command. Good luck, -Conrad

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Conrad Taylor
On Mon, Nov 2, 2009 at 1:22 AM, Max Williams rails-mailing-l...@andreas-s.net wrote: Rick Lloyd wrote: One more point. You said that you followed the instructions for install - there are three different paths there and I know for a fact that the gem install... version will give you

[Rails] Re: File not uploading properly

2009-11-02 Thread Leonardo Mateo
On Mon, Nov 2, 2009 at 9:43 AM, Raju Aralikatti rails-mailing-l...@andreas-s.net wrote: Hi all, I am using the following code to upload a file. views: %= file_field upload, 'file' ,:size= '30' % controller: file_path=

[Rails] Re: Assist me in Screen Scraping

2009-11-02 Thread Sandip Ransing
Hi Hassano Start with Scrapi Sandip -- www.funonrails.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

[Rails] Re: Assist me in Screen Scraping

2009-11-02 Thread hassan abi
Hi Sandip i learnt basic scraping with scrapi, through Ryan Bates railscasts. i just need to go deep and scrape some airline information via my rails app. Can you please guide me more? Thank you, Hassan 2009/11/2 Sandip Ransing san2...@gmail.com Hi Hassano Start with Scrapi Sandip --

[Rails] Re: Twitter by John Nunemaker

2009-11-02 Thread andkjaer
I know, that's why I ask where to put the different things. What I don't understand right now is you write It may be the right way to use the Twitter gem, but it's the wrong way to use Rails. How should i then use the GEM the Rails way (Right way)? Thanks... :O) On 2 Nov., 01:47, Marnen

[Rails] Re: Couldn't find SalesOrder without an ID

2009-11-02 Thread Vishnu First
Sijo k g wrote: Hi Vishnu In the normal case the procedure is like create_table :sales_orders, :id = false do |t| t.integer :ordernumber, :primary = true end Now in the class SalesOrder you can define like set_primary_key ordernumber And also you have to write a

[Rails] Re: please help - complicated polymorphic association

2009-11-02 Thread Sandip Ransing
Hi As subscriber model is polymorphic and as you are referring subscribers.appointments It means, you are having following association in appointment model. class Appointment ActiveRecord::Base has_many :subscribers, :as = : subscribable end Here goes solution class User

[Rails] Re: Ruby browser

2009-11-02 Thread Sandip Ransing
refer to watir library in ruby http://wtr.rubyforge.org/ On Mon, Nov 2, 2009 at 1:17 AM, Leonardo Mateo leonardoma...@gmail.comwrote: On Sun, Nov 1, 2009 at 4:35 PM, Ernesto Rocha ernestorro...@gmail.com wrote: hi guys, I'm trying to do a program that automates some site usage, like

[Rails] Insert Multiple records in table

2009-11-02 Thread Brijesh Shah
Hi Here I want to insert multiple records into a single table. Table is users.: email, password, password_confirmation and country.. Add one more functionality is also there so multiple records can be vary.. There are two problems for me. 1, How to create/insert the records :(might be using

[Rails] Re: Ajax Pagination

2009-11-02 Thread Sandip Ransing
http://squaremasher.blogspot.com/2008/02/willpaginate-remotely.html Sandip -- www.funonrails.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

[Rails] Re: Assist me in Screen Scraping

2009-11-02 Thread Sandip Ransing
Sure..tell me On Mon, Nov 2, 2009 at 3:40 PM, hassan abi hassana...@gmail.com wrote: Hi Sandip -- Ruby on Rails Developer www.funonrails.com www.joshsoftware.com Http://twitter.com/sandipransing i learnt basic scraping with scrapi, through Ryan Bates railscasts. i just need to go deep

[Rails] Re: Insert Multiple records in table

2009-11-02 Thread Sandip Ransing
http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes On Mon, Nov 2, 2009 at 4:04 PM, Brijesh Shah rails-mailing-l...@andreas-s.net wrote: Hi Here I want to insert multiple records into a single table. Table is users.: email, password, password_confirmation and

[Rails] Re: Your Ruby IDE

2009-11-02 Thread Sandip Ransing
*Scite* is good for html and erb coding. *Vi* with rails.vim configuration is always best for any development -- Sandip --- www.funonrails.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Insert Multiple records in table

2009-11-02 Thread Brijesh Shah
Sandip Ransing wrote: http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes On Mon, Nov 2, 2009 at 4:04 PM, Brijesh Shah rails-mailing-l...@andreas-s.net wrote: 1, How to create/insert the records :(might be using array text Posted via

[Rails] Re: What's your favorite thing about Rails?

2009-11-02 Thread Sandip Ransing
Code less and enjoyable work :) its always fun while coding in ruby ! -- Sandip --- www.funonrails.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

[Rails] Re: Ajax Pagination

2009-11-02 Thread Conrad Taylor
On Wed, Oct 28, 2009 at 4:45 AM, Rails ROR developra...@gmail.com wrote: Hi Everybody, I want to implement pagination with ajax. I followed this url: http://wiki.github.com/mislav/will_paginate/ajax-pagination I am getting the page results. But when i click on the next or 2,3 i am

[Rails] Re: Email configuration in ROR.

2009-11-02 Thread sami
you can have a look at the following link http://email.about.com/od/emailprogrammingtips/qt/et_mail_rails.htm On Nov 2, 1:11 pm, Tushar Gandhi rails-mailing-l...@andreas-s.net wrote: Hi, I am using rails 2.2. I want to send out an email through my application. Can anyone tell me How should I

[Rails] CCAvenue Payment gateway in rails

2009-11-02 Thread mahesh s
Hi Friends i would like to integrate the payment gateway ccavenue in to my railsapp give some guide line for how to implement the gateway Ur's Mahesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Email configuration in ROR.

2009-11-02 Thread sami
you can also have a look at the following link http://www.tutorialspoint.com/ruby-on-rails/rails-send-email.htm On Nov 2, 1:11 pm, Tushar Gandhi rails-mailing-l...@andreas-s.net wrote: Hi, I am using rails 2.2. I want to send out an email through my application. Can anyone tell me How should

[Rails] Re: File not uploading properly

2009-11-02 Thread sami
which server are you using ... you can increase maximum file upload size and maximum execution time as well ... hope this may solve the problem On Nov 2, 3:43 pm, Raju Aralikatti rails-mailing-l...@andreas-s.net wrote: Hi all, I am using the following code to upload a file. views: %=

[Rails] Re: Dynamic Database Connections

2009-11-02 Thread Amar Daxini
jmamma wrote: Hey everyone! I have a problem that's been making me a little nuts. I would like to use RoR for a upcoming project, but if I can't get past this hiccup I'm afraid I'll have to use PHP or Java. Ugh. check out data_fabric gem http://www.codefutures.com/database-sharding/ and

[Rails] Re: How to set up a has_many :through association with Ultrasphinx

2009-11-02 Thread Paco Guzman
Adam wrote: Hey everyone, got it to work! Here's what I'm using: is_indexed :fields = [{:field = 'name', :as = 'playlist_name'}], :concatenate = [{ :class_name = 'Song', :field = 'name', :association_sql = LEFT JOIN playlistings ON ((playlist_id=playlists.id))

[Rails] Re: Insert Multiple records in table

2009-11-02 Thread Jon Hinson
Check out ar-extensions (http://www.continuousthinking.com/tags/ arext). Here's an article that explains the usage: http://www.jobwd.com/article/show/31. Specifically, you'll probably want to look at the import method it provides. You can tell it whether or not you want to use validations as

[Rails] Re: should cache-money work with rails unit tests?

2009-11-02 Thread Tony
Thanks for the pointers Conrad. It seems this project has several active forks on github. How does one go about choosing one? My hunch is to go with a fork that is still active but my fear is that it may diverge from what the original author intended and will become deprecated. Any

[Rails] [ANN] Ruby Manor 2: Manor Harder - Dec 12th, London

2009-11-02 Thread James Adam
Hi all, Just a quick note to let you know that The Guvner has thrown open the doors to the Manor once again, and Ruby Manor will be happening on December 12th in London[1]. Ruby Manor doesn't use a typical 'call for proposals' process, because we believe that the community must be engaged

[Rails] Re: Dynamic Database Connections

2009-11-02 Thread jmamma
Thanks Amar. Sharding isn't exactly what I need here, but some interesting info nonetheless. I have a main db ( users, applications, etc ) and a database for each customer ( products, orders, etc ) When I want to get all the products, for example, I need to connect to a particular customers

[Rails] Re: should cache-money work with rails unit tests?

2009-11-02 Thread Conrad Taylor
On Mon, Nov 2, 2009 at 4:58 AM, Tony tony.primer...@gmail.com wrote: Thanks for the pointers Conrad. It seems this project has several active forks on github. How does one go about choosing one? My hunch is to go with a fork that is still active but my fear is that it may diverge from

[Rails] Re: no way to read image data from database

2009-11-02 Thread daociyiyou
Attachment_fu works fine in :file_system mode, but not in :db_file mode. It seems to upload only about 45 bytes of data instead of the entire image.Either t.binary :data or t.binary :data,:limit = 10.megabyte can not works. anyone can help me? Nearly a week time spent on it.

[Rails] Share controller method when rendering partial

2009-11-02 Thread andkjaer
Hi, I have a question regarding rendering partials: I have this controller called twitter class TwitterController ApplicationController def index @twitter_search = Twitter::Search.new('#rails') end end In the twitter index views i render a partial: %= render :partial =

[Rails] Redundant require lib statements

2009-11-02 Thread Fernando Perez
Hi, Let's say in Model1 I require 'net/http', and in Model9 I also require 'net/http' because I forgot it was already required in Mode1, will that cause a problem? Should I redundantly require libs? Should I put require statements in a common place? What's the consensus on that? Best regards,

[Rails] Re: form_tag wih two Button

2009-11-02 Thread Simoha Simoha
Glen, Thanks, that, what i search :) Glen wrote: In order to create a JavaScript-only button, you have to use button_to_function helper instead of submit_tag. See the following documentation. http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#M001757 Glen

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Rick
Max - just to finish things off... It appears that the paginate gem served up from gemcutter is, in fact, built from the current mislav-will_paginate version2.3.11. The confusion regarding the name stems from: 1) The gemspec distributed from the git://...mislav/will_paginate site builds a gem

[Rails] How to get value of select box for button_to?

2009-11-02 Thread TJ Lee
Hi, I have a select box with the following options: select id=flight_destination name=flight[destination] option value=Destination/option optgroup label=Australia option value=OOLGoldCoast/option option value=MELMelbourne/option /optgroup /select How do I get the value of the select box into the

[Rails] Migration from 2.2.2 to 2.3.4 causes CPU overhead on servers

2009-11-02 Thread Alex Gusev
Hi. I migrated my application from rails 2.2.2 to 2.3.4 and from passenger 2.0.6 to 2.2.5. Good news that my app now is eating less memory, and bad news that cpu load is very high and rails processes are all have status RUNNING. I didnt change any config options in my nginx and apache, i

[Rails] Re: Redundant require lib statements

2009-11-02 Thread Frederick Cheung
On Nov 2, 1:59 pm, Fernando Perez rails-mailing-l...@andreas-s.net wrote: Hi, Let's say in Model1 I require 'net/http', and in Model9 I also require 'net/http' because I forgot it was already required in Mode1, will that cause a problem? Nope. The second require will be ignored (note that

[Rails] Re: Share controller method when rendering partial

2009-11-02 Thread Robert Walker
andkjaer wrote: Hi, I have a question regarding rendering partials: I have this controller called twitter class TwitterController ApplicationController def index @twitter_search = Twitter::Search.new('#rails') end end In the twitter index views i render a partial: %=

[Rails] Re: Redundant require lib statements

2009-11-02 Thread Fernando Perez
Nope. The second require will be ignored (note that ruby just looks at the string you pass require Super! Thanks for the clarification. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: Share controller method when rendering partial

2009-11-02 Thread Robert Walker
Robert Walker wrote: Keep in mind that instance variables set in controllers are only available for one request/response cycle. Any data you need for a view you should assign in the controller action used to render the view. Also remember that before_filter can be used in cases where you

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Max Williams
Rick Lloyd wrote: 1) The gemspec distributed from the git://...mislav/will_paginate site builds a gem named will_paginate not mislav-will_paginate. There are other problems (I18n related) with the gemspec as well. cool, glad it's not just me that's confused then. I never understood why

[Rails] Re: should cache-money work with rails unit tests?

2009-11-02 Thread Tony
On Nov 2, 8:13 am, Conrad Taylor conra...@gmail.com wrote: On Mon, Nov 2, 2009 at 4:58 AM, Tony tony.primer...@gmail.com wrote: Thanks for the pointers Conrad.   It seems this project has several active forks on github.  How does one go about choosing one?  My hunch is to go with a fork

[Rails] Re: Dynamic Database Connections

2009-11-02 Thread Marnen Laibow-Koser
jmamma wrote: Hey everyone! I have a problem that's been making me a little nuts. I would like to use RoR for a upcoming project, but if I can't get past this hiccup I'm afraid I'll have to use PHP or Java. Ugh. The application needs to have a database-per-customer model. [...] Why

[Rails] Re: Share controller method when rendering partial

2009-11-02 Thread andkjaer
Thanks Robert, But one question. Where do I put the code called by an :before_filter In the application_controller ? On 2 Nov., 15:54, Robert Walker rails-mailing-l...@andreas-s.net wrote: Robert Walker wrote: Keep in mind that instance variables set in controllers are only available for

[Rails] Re: Twitter by John Nunemaker

2009-11-02 Thread Marnen Laibow-Koser
andkjaer wrote: I know, that's why I ask where to put the different things. What I don't understand right now is you write It may be the right way to use the Twitter gem, but it's the wrong way to use Rails. How should i then use the GEM the Rails way (Right way)? I already made specific

[Rails] Re: no way to read image data from database

2009-11-02 Thread daociyiyou
I believe many peopel meet this problem --~--~-~--~~~---~--~~ 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

[Rails] Re: foreign key associations: best practices?

2009-11-02 Thread Marnen Laibow-Koser
Aaron Turner wrote: Looks like http://www.redhillonrails.org has been taken over by ads and considering how old the RedHill plugins are getting I was wondering if people are still using the RedHill foreign_key_migrations plugin to setup foreign key relationships? If not what are people

[Rails] Re: no way to read image data from database

2009-11-02 Thread Marnen Laibow-Koser
daociyiyou wrote: Attachment_fu works fine in :file_system mode, but not in :db_file mode. [...] Then don't use :db_file mode. :) Images don't belong in the DB. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Dynamic Database Connections

2009-11-02 Thread Matt Jones
The usual trick in situations like this is to use a thread-local variable, set in the controller action and accessed from the models. It's a somewhat leaky abstraction, but probably the most reliable way to do things (ActiveSupport uses it for the Time.zone stuff). The code would look like

[Rails] Re: restful_authentication errors

2009-11-02 Thread Fer T.
MarkusW wrote: When I run [code] script/generate authenticated user --include-activation [/ code] it seems to work at first, but then it reports: The name 'SessionsHelper' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run

[Rails] Re: restful_authentication errors

2009-11-02 Thread Marnen Laibow-Koser
MarkusW wrote: [...] I just started a new app and installed only the restful_authentication plugin. Then please, forget about restful_authentication and use Authlogic. restful_authentication is easy to set up, but puts a lot of unmaintainable generated crap into your application. Any

[Rails] errornous WSDL output for complex type

2009-11-02 Thread Kalpesh1 Patel
I tried to create WSDL with rails 1.2.6 but when I tried to return a custom data type rather than built in data type in my web API, I got this kind of WSDL data(I have not put entire WSDL file here but just few parts of it). I tried to compile it in java but could not compile it. Looks like rails

[Rails] Lazy-loaded sessions with memcache under 2.3.4?

2009-11-02 Thread Wisq
I've got a Rails 2.2.3 that I recently upgraded to 2.3.4. I made a new Rails tree and copied most of the stuff under config over (from the new tree to my existing tree) in order to get things to a clean 2.3.x state. Rails is frozen-in under vendor and script/server verifies I'm running 2.3.4,

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Marnen Laibow-Koser
Max Williams wrote: Rick Lloyd wrote: 1) The gemspec distributed from the git://...mislav/will_paginate site builds a gem named will_paginate not mislav-will_paginate. There are other problems (I18n related) with the gemspec as well. cool, glad it's not just me that's confused then. I

[Rails] Re: will_paginate vs mislav-will_paginate

2009-11-02 Thread Max Williams
Marnen Laibow-Koser wrote: Max Williams wrote: Rick Lloyd wrote: 1) The gemspec distributed from the git://...mislav/will_paginate site builds a gem named will_paginate not mislav-will_paginate. There are other problems (I18n related) with the gemspec as well. cool, glad it's not just

[Rails] Re: How to do printing in ROR?

2009-11-02 Thread Norm Scherer
Tushar Gandhi wrote: Hi, I want to do printing in ROR? How should I do that? Is there any API's are present? Any help appreciated? Thanks, Tushar Gandhi Do you want to do the printing on the server system or on the client system? --~--~-~--~~~---~--~~

[Rails] *** Quick help with paperclip ***

2009-11-02 Thread RubyonRails_newbie
Hi All, Someone reccomended using paperclip as a way to easily upload photos. Basically I want a quick and easy solution to allow users to add a profile picture. Anyway - I have followed the tutorial on here: http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/ I can add a file,

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread Marnen Laibow-Koser
RubyonRails_newbie wrote: Hi All, Someone reccomended using paperclip as a way to easily upload photos. Basically I want a quick and easy solution to allow users to add a profile picture. Anyway - I have followed the tutorial on here:

[Rails] Re: foreign key associations: best practices?

2009-11-02 Thread Scott Johnson
I'm using foreigner. It works great for me. Foreign keys get correctly put into schema.db and everything. http://github.com/matthuhiggins/foreigner On Nov 2, 7:35 am, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: Aaron Turner wrote: Looks like http://www.redhillonrails.orghas

[Rails] Re: CCAvenue Payment gateway in rails

2009-11-02 Thread Jeff
On Nov 2, 5:38 am, mahesh s mahesh...@gmail.com wrote: Hi      Friends i would like to integrate the payment gateway ccavenue in to my railsapp  give some guide line for how to implement the gateway Ur's Mahesh How about if you actually did some work first (read the docs, try to implement

[Rails] Controller Action - Publish Automation

2009-11-02 Thread Leo Stern
I am storing the product, tip and post in Rails built in Cache at the site www.onebeautyproduct.com. Currently I have built a button in the administration that says publish today's events which essentially deletes and stores todays events. I have tried using Cron but it doesn't work with cache

[Rails] Re: foreign key associations: best practices?

2009-11-02 Thread Marnen Laibow-Koser
Scott Johnson wrote: I'm using foreigner. It works great for me. Foreign keys get correctly put into schema.db and everything. http://github.com/matthuhiggins/foreigner On Nov 2, 7:35 am, Marnen Laibow-Koser rails-mailing-l...@andreas- I'm glad to know about Foreigner; I hadn't heard of

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread RubyonRails_newbie
I'll be a robot then!!! :-) Will a simple 'submit' button solve my issue then? On 2 Nov, 18:49, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: RubyonRails_newbie wrote: Hi All, Someone reccomended using paperclip as a way to easily upload photos. Basically I want a quick

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread Greg Donald
On Mon, Nov 2, 2009 at 1:25 PM, RubyonRails_newbie craigwest...@googlemail.com wrote: I'll be a robot then!!! :-) Will a simple 'submit' button solve my issue then? This list is for developers, not robots. Learn HTML and come back next year. -- Greg Donald http://destiney.com/

[Rails] Re: How to obtain the context path in a Jruby app on Tomcat?

2009-11-02 Thread Nick Sieger
On Thu, Oct 29, 2009 at 12:01 PM, Rafael Roque rails-mailing-l...@andreas-s.net wrote: Hi all, I successfully deployed my JRuby on Rails app on Tomcat In a jsp page I'd use ${pageContext.request.contextPath} to obtain my context path.How could I do this in a Ruby controller? JRuby-Rack

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread RubyonRails_newbie
Thanks for the really positive reply! I know html, but that's not exactly the problem when it comes to ensuring the upload functionality works!!! On 2 Nov, 19:34, Greg Donald gdon...@gmail.com wrote: On Mon, Nov 2, 2009 at 1:25 PM, RubyonRails_newbie craigwest...@googlemail.com wrote:

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread Marnen Laibow-Koser
RubyonRails_newbie wrote: Thanks for the really positive reply! I know html, but that's not exactly the problem when it comes to ensuring the upload functionality works!!! It sure sounds like an HTML issue. If not, then what problem *are* you having? Best, -- Marnen Laibow-Koser

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread RubyonRails_newbie
To be honest I'm new to ruby on rails so am following tutorials as I go.. I assumed there would have to be an upload function in one of the controllers to get this to work. As i'm relying on what I find online I guessed I'd missed something, but not 100% sure.. Ill have to do more digging. On

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread Pat Shaughnessy
Hi... sorry about those unhelpful replies; we were all beginners once too :( I wrote a paperclip tutorial that might help; I tried to write out step by step instructions: http://patshaughnessy.net/2009/4/30/paperclip-sample-app I've also been working on extending the scaffolding feature Rails

[Rails] Re: Dynamic Database Connections

2009-11-02 Thread jmamma
Thanks for your suggestion Matt. I'll look into it a bit and see if it will work. I'm not stuck on using the magic_multi_connections at this point. I'd go with an easier way if I could figure it out. I tinkered with just having a method in the application_controller that sets the connection

[Rails] Re: no way to read image data from database

2009-11-02 Thread Ar Chron
Marnen Laibow-Koser wrote: daociyiyou wrote: Attachment_fu works fine in :file_system mode, but not in :db_file mode. [...] Then don't use :db_file mode. :) Images don't belong in the DB. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org I was feeling masochistic

[Rails] Working round 'invalid byte sequence'

2009-11-02 Thread Toby Rodwell
I am a very amateur Rubyist who, amongst other things, likes to use a simple Rails app to query my company's MySQL config database. The server I now use to do this has got 1.9.1 and Rails 2.3.3. I've now hit the 'problems' related to 1.9 and string encoding, which means that when Rails try to

[Rails] Re: Dynamic Database Connections

2009-11-02 Thread Marnen Laibow-Koser
jmamma wrote: [...] Marnen - We need a db per customer for a few reasons. It will keep the clients data separate ( some of them are weird like that about their data, and require us to separate ), and also a particular customer could have a customer feature they purchase that won't make

[Rails] How to force AR belongs_to include option to eager load?

2009-11-02 Thread Artūras Šlajus
Hello I have two classes class SolarSystem ActiveRecord::Base has_many :fow_ss_entries, :dependent = :delete_all class FowSsEntry ActiveRecord::Base belongs_to :galaxy belongs_to :solar_system belongs_to :player named_scope :for, Proc.new { |galaxy, player| galaxy = galaxy.id

[Rails] Plugin not instaling?

2009-11-02 Thread Michal Burak
Hi. I try to install a plugin, but with no success, nothing is printed, the plugin is not installed. Input and output on my console: woj...@wojtek-laptop-hp:~/workspace_galileo/miejscowki$ script/plugin install git://github.com/ewildgoose/render_component.git -r rails-2.3

[Rails] Re: Plugin not instaling?

2009-11-02 Thread Michal Burak
I tried this, but its still not doing everything: woj...@wojtek-laptop-hp:~/workspace_galileo/miejscowki$ ruby script/plugin install http://github.com/ewildgoose/render_component.git/ -r rails-2.3 + ./README + ./Rakefile + ./init.rb + ./lib/components.rb + ./test/abstract_unit.rb +

[Rails] Re: Plugin not instaling?

2009-11-02 Thread Michal Burak
Ok, it is working, change git:// to http:// and add a trailing / to the URL. -- 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

[Rails] Re: Share controller method when rendering partial

2009-11-02 Thread Euwyn Poon
If I'm not mistaken, you have TwitterController and a DashboardController. You could have a before_filter (to set @twitter_search) in each of these for the methods that result in the partial being rendered. I suppose you could also have a before_filter in the ApplicationController, but not sure

[Rails] Ruby Gems version issue

2009-11-02 Thread Connor
Hi, When I try to launch my ruby on rails server, it says my ruby gems version is not up to date. However it is. I've even tried reinstalling ruby gems to the latest version, but it still says I have an old version. Does anyone know how to fix this issue? I'd be deeply grateful. Here is some

[Rails] Re: Ruby Gems version issue

2009-11-02 Thread Frederick Cheung
On Nov 2, 10:34 pm, Connor con...@letsbeglobal.com wrote: Here is some code directly from my terminal (I'm on an ubuntu system): con...@connor-desktop:~/Desktop/project$ sudo ruby script/server [sudo] password for connor: Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update

[Rails] Re: How to force AR belongs_to include option to eager load?

2009-11-02 Thread Frederick Cheung
On Nov 2, 10:56 pm, Artūras Šlajus rails-mailing-l...@andreas-s.net wrote: Now the evil thing is, that even thou' :include is specified, it does nothing. New AR eager loading resorts to doing n+1 sql queries in FowSsEntry.for(1,1).each { |fse| fse.solar_system } How do I force it into

[Rails] Re: gem installation failed

2009-11-02 Thread Lucy Snowe
Devendran Ganesan wrote: i got this error message while installing mysql gem. kindly help me to solve this issue JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL Building native extensions. This could

[Rails] Re: Ruby QR code decoder?

2009-11-02 Thread ckundo
Eric, I think I see the confusion. Check http://www.ruby-forum.com/topic/198410, you'll see that the timestamps are borked (see your reply from 10 months ago). In any event, thanks for the link. On Nov 1, 5:12 pm, Eric ericgh...@gmail.com wrote: Just that in 10 months of asap you could have

[Rails] Re: Ruby QR code decoder?

2009-11-02 Thread ckundo
Thanks, I'll give those a shot. Cameron On Nov 1, 6:00 pm, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: Eric wrote: Just that in 10 months of asap you could have implemented any of: http://stackoverflow.com/questions/231741/qr-code-2d-barcode-coding-a... Nothing

[Rails] Re: Ruby QR code decoder?

2009-11-02 Thread Marnen Laibow-Koser
ckundo wrote: Eric, I think I see the confusion. Check http://www.ruby-forum.com/topic/198410, you'll see that the timestamps are borked (see your reply from 10 months ago). In any event, thanks for the link. There is nothing wrong with the timestamps. They're just European-style DMY.

[Rails] Re: Dynamic Database Connections

2009-11-02 Thread jmamma
Hi again Marnen. I think we're a little off topic. The problem at hand is connecting to multiple databases, not poo poo'ing on the requirements haha! Thanks again for your input though! All thoughts are welcome. On Nov 2, 5:49 pm, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote:

[Rails] Gem::RemoteFetcher::FetchErro when installing rails

2009-11-02 Thread pierr
I am trying to install rails on Ubuntu 8.10, and met following errors. Please help me get through.Thanks. r...@pierr-desktop:~# gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response 500

[Rails] Re: no way to read image data from database

2009-11-02 Thread Ar Chron
What does your generated HTML look like for the view in question? What you have looks familiar, but image_tag may be messing you up. Can you get it to work if you ignore the helper and write the appropriate html to wrap the inline content yourself? -- Posted via http://www.ruby-forum.com/.

  1   2   >