[Rails] how do you access a remote XML file?

2010-07-08 Thread Ali
Hi, I'm trying to get a captch thing running from http://textcaptcha.com/ which displays an XML file when you trail a key on that URL. I've tried this: @captcha = Net::HTTP.get_print URI.parse('http:// textcaptcha.com/api/8wcmmrp2tzoc0k484kkwwkwcsdbpk70q') in the controller of the file that I

[Rails] Re: Re: Ruby on rails and android

2010-07-08 Thread Nike Mike
shyam mohan wrote: Hi alll... simmiler question i also want to ask How to use Rails for android application development...? Is there any tool for that...like iphone application development? Regards Shyam +91-97161-89650 http://shyam.heroku.com On Thu, Jul 8, 2010 at

[Rails] Paperclip polymorfic problem with :styles

2010-07-08 Thread Dries
I made a model Picture that is polymorfic but I want to specify specific :styles for each model that use Picture. http://pastie.org/1034662 I don't know how to this, I used lambda for this but he doesn't know the data.instance.picturable on submit. It returns always nil. -- You received this

[Rails] Gentoo for Rails?

2010-07-08 Thread Sal
I'm curious to know why Gentoo is a very commonly used distro for the Rails community. Any reasons for this? -- 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-t...@googlegroups.com. To

[Rails] Re: Class loading in development mode best practice / recommendation

2010-07-08 Thread Frederick Cheung
On Jul 7, 3:52 pm, Joe loret...@gmail.com wrote: Thanks for the suggestion, Fred.  That makes sense, and I would solve the problem in this case. Long term, I'm thinking of moving the framework out of the project and into a gem.  At that point, of course, it would be unrealistic to include

[Rails] Re: what is a session stored via the active_record_store option unique to?

2010-07-08 Thread Frederick Cheung
On Jul 7, 4:15 pm, Lille lille.pengu...@gmail.com wrote: Hi, After a bunch of snooping in AWDWR and Railsguides I can't reach a good understanding to the following question: What is a session stored via the active_record_store option unique to? In other words, how does rails bind the user

[Rails] Re: how do you access a remote XML file?

2010-07-08 Thread Frederick Cheung
On Jul 8, 7:20 am, Ali ali.akhtarz...@gmail.com wrote: Hi, I'm trying to get a captch thing running fromhttp://textcaptcha.com/ which displays an XML file when you trail a key on that URL. I've tried this: @captcha = Net::HTTP.get_print URI.parse('http://

[Rails] Foreign key

2010-07-08 Thread Rajkumar Surabhi
HI all, In my application i have 2 tables, 1.logins and 2. credits. logins contains customer details and credits has credit detils of customers. i have given custom foreign key while migrating database for credits table instead of logins_id i have given as log_id. how to mention this in model

Re: [Rails] Re: Passing parameter automatically to links

2010-07-08 Thread Colin Law
On 8 July 2010 06:16, sigma christoph.thom...@gmail.com wrote: Hi Ok, sessions seems  to be right, but not what I'm looking for :-) This parameter is not static, it is dynamic. the whole thing is for a CMS where the :site-id tells where the user stands in the navigation and what's the site

[Rails] Re: Newbie question about models

2010-07-08 Thread Henry Oss
Marnen Thanks for the reply. Wat...engineers and system users are *jobs*? That's what your associations would seem to say, unless I'm misreading. Yes. Though perhaps role is a better choice of word. Do engineers and system users require different sets of fields in their

Re: [Rails] Foreign key

2010-07-08 Thread Michael Pavling
On 8 July 2010 08:41, Rajkumar Surabhi li...@ruby-forum.com wrote: In my application i have 2 tables, 1.logins and 2. credits. how to mention this in model associtations You'll find lots of getting started guides online - no sense rewriting them here:

Re: [Rails] Foreign key

2010-07-08 Thread Colin Law
On 8 July 2010 08:52, Michael Pavling pavl...@gmail.com wrote: On 8 July 2010 08:41, Rajkumar Surabhi li...@ruby-forum.com wrote: In my application i have 2 tables, 1.logins and 2. credits. how to mention this in model associtations You'll find lots of getting started guides online - no

[Rails] Re: Simple question about submit

2010-07-08 Thread Rob Nichols
Marnen Laibow-Koser wrote: Rob Nichols wrote: Marnen Laibow-Koser wrote: Whatever the form tag's action is. Also, if no action is specified via the form tag, the form is submitted to the current url. So if 'thing/edit/1' contained: form input type=submit / /form The form would

Re: [Rails] Re: Newbie question about models

2010-07-08 Thread Colin Law
On 8 July 2010 08:50, Henry Oss li...@ruby-forum.com wrote: Marnen Thanks for the reply. Wat...engineers and system users are *jobs*?  That's what your associations would seem to say, unless I'm misreading. Yes.  Though perhaps role is a better choice of word. Do engineers and

Re: [Rails] Re: Simple question about submit

2010-07-08 Thread Colin Law
On 8 July 2010 09:04, Rob Nichols li...@ruby-forum.com wrote: Marnen Laibow-Koser wrote: Rob Nichols wrote: Marnen Laibow-Koser wrote: Whatever the form tag's action is. Also, if no action is specified via the form tag, the form is submitted to the current url. So if 'thing/edit/1'

[Rails] Re: order by not ordering as expected...

2010-07-08 Thread Rob Nichols
RubyonRails_newbie wrote: ah yes... :-) It is in the log: 0mSELECT * FROM `blogcomments` ORDER BY created_at desc LIMIT 1 So if it is in the log, why isn't it ordering the comments? 'LIMIT 1' at the end of that SQL query means that only one record is being returned. Either you haven't

Re: [Rails] Re: Simple question about submit

2010-07-08 Thread Michael Pavling
On 8 July 2010 09:04, Rob Nichols li...@ruby-forum.com wrote: Marnen Laibow-Koser wrote: No.  form without an action is invalid HTML, so its behavior is undefined.  An action must always be specified. Thank you for that comment on what should happen. However, the fact remains that if you

Re: [Rails] Re: order by not ordering as expected...

2010-07-08 Thread Colin Law
On 7 July 2010 21:59, Robert Walker li...@ruby-forum.com wrote: RubyonRails_newbie wrote:  def comment     �...@blogcomment = Blogcomment.find(:all, :order = created_at desc) I don't understand the point to this. See next comment...       @user = User.find(session[:user_id]) Nor this...

Re: [Rails] Re: Simple question about submit

2010-07-08 Thread Michael Pavling
On 8 July 2010 09:09, Colin Law clan...@googlemail.com wrote: If you develop a website that does not generate valid html then next week an update to IE may break the website and your clients/users will not be happy. *ahem* one may develop websites with valid html and *this* week, and find the

[Rails] Re: Re: Newbie question about models

2010-07-08 Thread Henry Oss
Colin Thanks for your reply. Colin Law wrote: So many that I don't want to have redundant fields in a single table Why? Because I oversimplified and there are actually many roles, each with many attributes. As I understand it STI _is_ an all in one table with a role (conventionally

[Rails] Re: Passing parameter automatically to links

2010-07-08 Thread sigma
On Jul 8, 9:43 am, Colin Law clan...@googlemail.com wrote: On 8 July 2010 06:16, sigma christoph.thom...@gmail.com wrote: Hi Ok, sessions seems  to be right, but not what I'm looking for :-) This parameter is not static, it is dynamic. the whole thing is for a CMS where the :site-id

[Rails] Remote ROR developers for monthly lease!

2010-07-08 Thread Basil Babu
Hi All: Greetings! We, Talinoz IT Systems, are an Indian based ROR developers group. We offer the remote ROR team or individual developers to you for a very minimal cost. Please write back to know more. Have a very great day! -- Thanks and regards Basil Babu Managing Partner Talinoz IT

[Rails] ArrrrCamp 2010.10 - About Ruby, Rails, Radiant Rum camp

2010-07-08 Thread Jan De Poorter
Ahoy Mateys! ACamp brings you a Camp about your favorite language, framework and CMS, and brings you in a holiday mood! The conference takes place in Ghent, Belgium (Europe) on October 29th. This edition we are having some interesting speakers for you * Yehuda Katz - Rails core, jQuery

[Rails] Re: Passing parameter automatically to links

2010-07-08 Thread Frederick Cheung
On Jul 7, 5:21 pm, sigma christoph.thom...@gmail.com wrote: Hi there Is it possible to pass a parameter automatically to every rails generated link? ActionController::default_url_options ? Fred -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Passing parameter automatically to links

2010-07-08 Thread sigma
On Jul 8, 11:48 am, Frederick Cheung frederick.che...@gmail.com wrote: On Jul 7, 5:21 pm, sigma christoph.thom...@gmail.com wrote: Hi there Is it possible to pass a parameter automatically to every rails generated link? ActionController::default_url_options ? Fred Hi Fred This is

[Rails] Non Database

2010-07-08 Thread Adrian Wadey
Hi, I am looking at using Ruby in an application that, as well as having the usual database will also need to interface to real-time data using tftp. Is it possible to do this within RoR? Where do I start? Thanks Adrian -- You received this message because you are subscribed to

[Rails] How to create thumbnail

2010-07-08 Thread debadatta
Hi all I want to create thumbnail for a uploaded image file, I have a product controller and model with a image field .I want file uploaded in the image field should have one thumbnail file and also one general. I have tried a lot by installing plugins for thumbnails but they are not working

Re: [Rails] Non Database

2010-07-08 Thread Colin Law
On 8 July 2010 11:21, Adrian Wadey adri...@ssosystems.com wrote: Hi, I am looking at using Ruby in an application that, as well as having the usual database will also need to interface to real-time data using tftp. Is it possible to do this within RoR? I don't see why not Where do I

RE: [Rails] Non Database

2010-07-08 Thread Adrian Wadey
I'm new to RoR. Would I need to be looking at the Model code to talk to the real-time stuff or would I need to look deeper into ROR? Just after some general pointers at this point. Need to spend some time working through some of the tutorials. Thanks Adrian -Original Message- From:

[Rails] Paypal Integration

2010-07-08 Thread debadatta
Hi all -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options,

[Rails] Re: SOAP web service

2010-07-08 Thread pepe
Try this: http://github.com/datanoise/actionwebservice I believe they took the original Rails actionwebservice product and they are keeping at it. I had to work with web services (consuming them, not providing them) and had lots of problems with the original Rails version. I still had some

Re: [Rails] Re: how do you access a remote XML file?

2010-07-08 Thread Ali Akhtarzada
Thank you sir! On Thu, Jul 8, 2010 at 7:19 PM, Frederick Cheung frederick.che...@gmail.com wrote: On Jul 8, 7:20 am, Ali ali.akhtarz...@gmail.com wrote: Hi, I'm trying to get a captch thing running fromhttp://textcaptcha.com/ which displays an XML file when you trail a key on that URL.

[Rails] Re: Remote ROR developers for monthly lease!

2010-07-08 Thread Marnen Laibow-Koser
Basil Babu wrote: Hi All: Greetings! We, Talinoz IT Systems, are an Indian based ROR developers group. We offer the remote ROR team or individual developers to you for a very minimal cost. Please write back to know more. Have a very great day! -- Thanks and regards Basil Babu

[Rails] Re: RE: Non Database

2010-07-08 Thread Marnen Laibow-Koser
Adrian Wadey wrote: I'm new to RoR. Would I need to be looking at the Model code to talk to the real-time stuff Probably. --  Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because

Re: [Rails] How to create thumbnail

2010-07-08 Thread catz
Just try paperclip, very simple solution for it. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: How to create thumbnail

2010-07-08 Thread Ar Chron
catz wrote: Just try paperclip, very simple solution for it. +1 for the paperclip recommendation, but you also need some image processing package installed and available... ImageMagick, or something similar. Then it's almost as simple as: class Image ActiveRecord::Base has_attachment

[Rails] Re: How to create thumbnail

2010-07-08 Thread debadatta
On Jul 8, 5:46 pm, Ar Chron li...@ruby-forum.com wrote: catz wrote: Just try paperclip, very simple solution for it. +1 for the paperclip recommendation, but you also need some image processing package installed and available... ImageMagick, or something similar. Then it's almost as

[Rails] Re: Re: Simple question about submit

2010-07-08 Thread Ralph Shnelvar
On this and other forums I sometimes get the suggestion Try it. I have made the comment in forums to the effect that Just because it works does not mean that it is defined to work. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] need pdf gen which is support to Asian languages

2010-07-08 Thread nirosh
which PDF plug-in is support to Asian languages? i tried prawn PDF::writer both of those dosen't workout for me. any idea?? -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

Re: [Rails] Re: Ruby on rails and android

2010-07-08 Thread Craig White
On Thu, 2010-07-08 at 10:36 +0530, shyam mohan wrote: Hi alll... simmiler question i also want to ask How to use Rails for android application development...? Is there any tool for that...like iphone application development? Not even remotely connected to ruby or ruby on rails

Re: [Rails] Gentoo for Rails?

2010-07-08 Thread Gregory Seidman
On Wed, Jul 07, 2010 at 11:58:12AM -0700, Sal wrote: I'm curious to know why Gentoo is a very commonly used distro for the Rails community. Any reasons for this? I think you may have been misled. I mostly hear about Ubuntu, though I know there are lots of deployments on RHEL and CentOS. --Greg

Re: [Rails] Re: Ruby on rails and android

2010-07-08 Thread Michael Pavling
On 8 July 2010 15:44, Craig White craigwh...@azapple.com wrote: On Thu, 2010-07-08 at 10:36 +0530, shyam mohan wrote:  How to use Rails for android application development...? Is there any tool for that...like iphone application development? Not even remotely connected to ruby or

Re: [Rails] Non Database

2010-07-08 Thread Colin Law
On 8 July 2010 11:39, Adrian Wadey adri...@ssosystems.com wrote: I'm new to RoR.  Would I need to be looking at the Model code to talk to the real-time stuff or would I need to look deeper into ROR?  Just after some general pointers at this point.  Need to spend some time working through some

Re: [Rails] Re: Ruby on rails and android

2010-07-08 Thread Greg Donald
On Thu, Jul 8, 2010 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote: Or you can use Rhodes/Rhomobile: http://github.com/rhomobile I saw their demo at RailsConf last month. It only does the most simple form/list stuff, and what it draws is really very ugly. Yeah, you can write your code

Re: [Rails] Paypal Integration

2010-07-08 Thread Andy Jeffries
I'd recommend starting here... Episode 141: PayPal Basicshttp://railscasts.com/episodes/141-paypal-basics Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 On 8 July

Re: [Rails] Re: Ruby on rails and android

2010-07-08 Thread Mohit Sindhwani
On 8/7/2010 1:06 PM, shyam mohan wrote: Hi alll... simmiler question i also want to ask How to use Rails for android application development...? Is there any tool for that...like iphone application development? rhomobile. Best Regards, Mohit. 8/7/2010 | 11:41 PM. -- You received

Re: [Rails] Gentoo for Rails?

2010-07-08 Thread Greg Donald
On Thu, Jul 8, 2010 at 10:13 AM, Gregory Seidman gsslist+...@anthropohedron.net wrote: On Wed, Jul 07, 2010 at 11:58:12AM -0700, Sal wrote: I'm curious to know why Gentoo is a very commonly used distro for the Rails community. Any reasons for this? I think you may have been misled. I mostly

Re: [Rails] Re: Ruby on rails and android

2010-07-08 Thread Michael Pavling
On 8 July 2010 16:35, Greg Donald gdon...@gmail.com wrote: On Thu, Jul 8, 2010 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote: Or you can use Rhodes/Rhomobile: http://github.com/rhomobile I saw their demo at RailsConf last month.  It only does the most simple form/list stuff, and what

[Rails] Re: Gentoo for Rails?

2010-07-08 Thread Frederick Cheung
On Jul 8, 4:41 pm, Greg Donald gdon...@gmail.com wrote: I agree.  I've not heard of a single Gentoo + Rails deployment, ever. I'm sure some exist but no one is really blogging about them or anything.  Linux is 99% the same from distro to distro.. same gcc, same glibc, same kernel, just

[Rails] Linking API derived data to my application's database

2010-07-08 Thread MattB
Hi guys, Given a page that retrieves data from a 3rd party API, how would you then go about associating additional info in the application's database with that record? Specifically, the page displays info on a product, and I'd like to store and display locally created reviews for that product.

[Rails] Re: Ruby on rails and android

2010-07-08 Thread MattB
You could do worse than to look at Rhodes which is an open-source cross-platform tool to allow development if mobile apps in Ruby.You could then link to a backend app developed with RoR. Supports Android and iOS amongst others. On Jul 8, 4:51 am, Nike Mike li...@ruby-forum.com wrote: How to

[Rails] Re: need pdf gen which is support to Asian languages

2010-07-08 Thread Marnen Laibow-Koser
nirosh wrote: which PDF plug-in is support to Asian languages? i tried prawn PDF::writer both of those dosen't workout for me. any idea?? Prawn should support UTF-8 text. It wouldn't do font fallback last time I tried, though, so you need to select a font that actually contains the

[Rails] need clarification

2010-07-08 Thread tom
hi i have a Project Task model. Project model has that additional method: def self.lasttask(project, sort=DESC) Task.find(:first, :conditions=['project_id = ? ', project.id], :order = somedate #{sort} ) end The Task model has one attribute called specialtask which is

Re: [Rails] Paperclip polymorfic problem with :styles

2010-07-08 Thread Philip Hallstrom
I made a model Picture that is polymorfic but I want to specify specific :styles for each model that use Picture. http://pastie.org/1034662 I don't know how to this, I used lambda for this but he doesn't know the data.instance.picturable on submit. It returns always nil. My memory is

[Rails] testing authentication with basic_auth

2010-07-08 Thread anywho
hi, I've got an api which is using authenticate_or_request_with_http_basic What are you guys using to test this? I'm using rspec, and before I was using rspec-rails, I was using authorize from Rack::Test to do the authentication. However, authorize clearly doesn't work when using rspec-rails, so

[Rails] Rails on BSD

2010-07-08 Thread Mrbass21
I had this problem too. After searching all day I found a solution. On BSD you need to have a converter installed. /usr/ports/converters/ruby-iconv/ sudo make install clean However, that did not solve the problem for me until I found this post: Just change RUBY_DEFAULT_VER?= in

[Rails] Re: Linking API derived data to my application's database

2010-07-08 Thread Ar Chron
MattB wrote: Hi guys, Given a page that retrieves data from a 3rd party API, how would you then go about associating additional info in the application's database with that record? Specifically, the page displays info on a product, and I'd like to store and display locally created

[Rails] Google Adsense

2010-07-08 Thread Ainar Abramovich
What steps are needed to integrate Google Adsense in Ruby on Rails app? Just copy and paste of adsense code will not work..., hope somene have done it before..., Regards -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: Re: Simple question about submit

2010-07-08 Thread Ar Chron
Ralph Shnelvar wrote: On this and other forums I sometimes get the suggestion Try it. I have made the comment in forums to the effect that Just because it works does not mean that it is defined to work. That sounds like something I hear at work from time to time... It is not known not to

[Rails] Re: View Path and Plugins

2010-07-08 Thread Frederick Cheung
On Jul 6, 10:49 pm, Greg Willits li...@ruby-forum.com wrote: I tried this with no joy: plugin_folder = #{File.dirname(__FILE__)} ActionController::Base.view_paths.unshift File.join(plugin_folder, 'views') How are you trying to use the views in your apps ? If my memory is correct, setting

Re: [Rails] Google Adsense

2010-07-08 Thread Philip Hallstrom
What steps are needed to integrate Google Adsense in Ruby on Rails app? Just copy and paste of adsense code will not work..., hope somene have done it before..., Regards Why won't it? It should work just fine... What error are you getting? -philip -- You received this message because you

Re: [Rails] Google Adsense

2010-07-08 Thread Greg Donald
On Thu, Jul 8, 2010 at 11:59 AM, Ainar Abramovich youhubcommun...@gmail.com wrote: What steps are needed to integrate Google Adsense in Ruby on Rails app? Just copy and paste of adsense code will not work..., hope somene have done it before..., Regards Works fine for me, 4 or 5 years now. --

Re: [Rails] Re: Gentoo for Rails?

2010-07-08 Thread Greg Donald
On Thu, Jul 8, 2010 at 11:03 AM, Frederick Cheung frederick.che...@gmail.com wrote: For what it's worth Engineyard use gentoo (but I agree that you hear far more about people using ubuntu) Ahh.. that explains why the prices are so high. Their electric bill must be through the roof from all

Re: [Rails] Re: Ruby on rails and android

2010-07-08 Thread Greg Donald
On Thu, Jul 8, 2010 at 10:43 AM, Michael Pavling pavl...@gmail.com wrote: Really? I'm looking at my invoices and beg to disagree. What's the market:// URL to your app(s)? -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google

Re: [Rails] Rails on BSD

2010-07-08 Thread Joshua Martin
You might also try using TorqueBox (JRuby) on BSD... On Thu, Jul 8, 2010 at 12:17 PM, Mrbass21 mrbas...@gmail.com wrote: I had this problem too. After searching all day I found a solution. On BSD you need to have a converter installed. /usr/ports/converters/ruby-iconv/ sudo make install

Re: [Rails] need clarification

2010-07-08 Thread Colin Law
On 8 July 2010 17:12, tom tomabr...@gmail.com wrote: hi i have a Project Task model. Project model has that additional method: def self.lasttask(project, sort=DESC)   Task.find(:first, :conditions=['project_id = ? ', project.id], :order = somedate #{sort} ) end As a side

[Rails] send_file from URL?

2010-07-08 Thread dino d.
hi - i have a URL of an image (on cloud storage) and I want to send the file from a request. I do not want to redirect because I want to conceal the cloud URL. So I want to do something like: send_file http://www.; but it cannot find the file: Cannot read file http://... but, the url is

[Rails] Re: Google Adsense

2010-07-08 Thread Ainar Abramovich
OK, I'll try but when I'm running it on my localhost it just displays blank white area -- 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-t...@googlegroups.com. To unsubscribe from this group,

[Rails] Re: Google Adsense

2010-07-08 Thread Ainar Abramovich
OK, I'll try but when I'm running it on my localhost it just displays blank white area -- 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-t...@googlegroups.com. To unsubscribe from this group,

Re: [Rails] Re: Google Adsense

2010-07-08 Thread Philip Hallstrom
OK, I'll try but when I'm running it on my localhost it just displays blank white area Isn't the code tied to your website domain? I believe so... since localhost doesn't match, it doesn't display anything. I don't use adsense enough to be sure, but check their forums/help. Pretty sure

[Rails] [Rails3] Issue in modifying locale and redisplaying page

2010-07-08 Thread Erwin
In a test app, I have a drop-down selection to change the language of the site. I use an Ajax request to an action in which the locale is changed, and the it's redirected to the home page unfortunately, the locale seems to be changed but the home page doesn't reflect the new language ..

[Rails] my web app seed data and cucumber

2010-07-08 Thread Constantin Gavrilescu
I'm writing a web app which is used a SaS. Each customer has their own db and app directory. I have a rake task which creates all necessary minimum data to run their website: default rights and roles, a superadmin user, a us_states table already populated, some local depots and terminals (it's a

[Rails] Re: Linking API derived data to my application's database

2010-07-08 Thread MattB
On Jul 8, 5:57 pm, Ar Chron li...@ruby-forum.com wrote: Use the id field for all your rails coding - the product record and parent id of the child review records, and use the barcode value to access the external 3rd party API data. Hi Ar, That's pretty much how I'd originally structured it

[Rails] Re: send_file from URL?

2010-07-08 Thread Robert Walker
dino d. wrote: send_file http://www.; but it cannot find the file: Cannot read file http://... but, the url is valid, I can see the file no problem. Is there a way to send a file from an external source? I want to avoid downloading the file to my server then resending it to the

[Rails] Re: send_file from URL?

2010-07-08 Thread dino d.
thanks for the response. you'll notice i posted in the original because I want to conceal the cloud URL On Jul 8, 3:18 pm, Robert Walker li...@ruby-forum.com wrote: dino d. wrote: send_file http://www.; but it cannot find the file: Cannot read file http://... but, the url is

[Rails] Re: my web app seed data and cucumber

2010-07-08 Thread Robert Walker
Constantin Gavrilescu wrote: I have three questions: 1. I don't want to run this MinimumData.populate task before each scenario because it takes 8 seconds. Should I make it run just once, globally? Don't use seed data for running tests. I would highly recommend using a Factory framework

[Rails] Re: Non Database

2010-07-08 Thread MattB
Hi Adrian, Have a look at this for some (Ruby) code ideas: http://pseudo-flaw.net/content/tftpgrab/ After that, it depends what your data looks like, and what you need to do with it. Matt. On Jul 8, 11:21 am, Adrian Wadey adri...@ssosystems.com wrote: Hi, I am looking at using Ruby in an

[Rails] Re: my web app seed data and cucumber

2010-07-08 Thread Constantin Gavrilescu
On 8 juil, 14:34, Robert Walker li...@ruby-forum.com wrote: Constantin Gavrilescu wrote: I have three questions: 1. I don't want to run this MinimumData.populate task before each scenario because it takes 8 seconds. Should I make it run just once, globally? Don't use seed data for

[Rails] Re: Rails on BSD

2010-07-08 Thread Fernando Perez
On BSD you need to have a converter installed. /usr/ports/converters/ruby-iconv/ Yeah when you install ruby if you look closely you'll see a post install message that says iconv is a separate port. It should read bigger. Just change RUBY_DEFAULT_VER?= in /usr/ports/Mk/bsd.ruby.mk from 1.8

[Rails] [Rails3b4] Route globbing

2010-07-08 Thread johnb
I'm trying out globbing for the first time, I have the route match '*path' = 'request#dispatch' defined and a scaffolded request controller with dispatch method and accompanying scaffolded default view yet I get; ArgumentError in RequestController#dispatch wrong number of arguments (2 for 0)

[Rails] Re: my web app seed data and cucumber

2010-07-08 Thread Robert Walker
Constantin Gavrilescu wrote: On 8 juil, 14:34, Robert Walker li...@ruby-forum.com wrote: can be used to greatly reduce the overhead you're seeing with your seed data generation technique. http://github.com/notahat/machinisthttp://github.com/thoughtbot/factory_girl I was under the

[Rails] Re: Route globbing

2010-07-08 Thread johnb
turns out it was the method name 'dispatch' that was causing the issue. On Jul 8, 9:25 pm, johnb john.bey...@gmail.com wrote: I'm trying out globbing for the first time, I have the route match '*path' = 'request#dispatch' defined and a scaffolded request controller with dispatch method

[Rails] Re: Outputting a rails url to javascript

2010-07-08 Thread Tig
I've found a solution - instead of adding a 'link' column to my 'places' table, I can just use the place id value to create a link in my js file: a href='/places/+place.id+'Show more!/a Hope that sounds okay, it seems to work fine! On Jul 7, 5:27 pm, Tig sonia.bracegir...@gmail.com wrote: Hi,

[Rails] Re: Gentoo for Rails?

2010-07-08 Thread Agoofin
I had a much easier time installing rails on gentoo then ubuntu. Of course on gentoo you have a lot more control over what's installed with the price of knowing what to install. Any distro will do though. I'd suggest looking into rvm as well. On Jul 7, 2:58 pm, Sal fuente...@gmail.com wrote:

[Rails] Rails3 -- Replacement for ActionController::Base.relative_url_root?

2010-07-08 Thread donktwo
I have a post on stackoverflow which outlines the problem I am having: http://stackoverflow.com/questions/3181746/what-is-the-replacement-for-actioncontrollerbase-relative-url-root In short, I ported a rails 2.x to rails3 and started getting a deprecation warning for using

[Rails] [JOBS] Ruby on Rails Developer

2010-07-08 Thread David Christensen
We are assisting a client with their search for a RoR Developer. They are located in San Mateo, CA and would prefer hiring a full time resource but would consider a contractor, as well. They are well funded and offer a competitve salary/equity package. If you or anyone you know would be

[Rails] Re: send_file from URL?

2010-07-08 Thread Frederick Cheung
On Jul 8, 8:33 pm, dino d. dinodorr...@yahoo.com wrote: thanks for the response.  you'll notice i posted in the original because I want to conceal the cloud URL send_file can't do that. I suppose you could write a small rails metal or embedded Sinatra app that streamed the file to them. You

[Rails] How to Find Good Ruby on Rails Freelancers and Developers

2010-07-08 Thread radrecruiter
I'm looking to start a discussion on how to find good Ruby on Rails Developers. Can anyone lead me in the right direction? Ruben Zaragoza -- 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

Re: [Rails] Re: Gentoo for Rails?

2010-07-08 Thread Gerardo Gonzalez Cruz
I Work rails on my beauty Gentoo System, i find hard install rails over Ubuntu because you need know each package to install :-(, on Gentoo is easy. On Thu, Jul 8, 2010 at 4:25 PM, Agoofin thebserv...@gmail.com wrote: I had a much easier time installing rails on gentoo then ubuntu. Of

Re: [Rails] How to Find Good Ruby on Rails Freelancers and Developers

2010-07-08 Thread Philip Hallstrom
I'm looking to start a discussion on how to find good Ruby on Rails Developers. Can anyone lead me in the right direction? - Look at their code (github, etc.). - Look at their contributions on mailing lists, blogs, talks, presentations, etc. - Talk to their references!!! Sure, references are

[Rails] Re: Simple routing problem

2010-07-08 Thread RichardOnRails
Hi Colin, Have a look at the Rails Guide on routing. Good idea. I'm still stuck on that.issue. Thanks. Best wishes, Richard On Jul 6, 3:20 am, Colin Law clan...@googlemail.com wrote: On 6 July 2010 05:39, RichardOnRails richarddummymailbox58...@uscomputergurus.com wrote: Hey Niels,

[Rails] hidden_field vs. form_for Parameter

2010-07-08 Thread Bob Nadler
Hi, I have a question regarding the best way to do the following: Given I have a Parent model that has many Child models, and the show page for the parent model allows the user to create a new Child, which is preferable? A) % form_for(@child, :parent_id = @parent.id) do |f| % f.text_field

[Rails] Re: Re: How do you deploy RoR? Newb alert!

2010-07-08 Thread RailsFan Radha
Excellent Ulises. Thanks for this listing. I think this will be helpful to everyone. Ulises Ramirez-Roche wrote: The .gitignore file should be created in the root directory of your rails project. It tells git which files to ignore when looking at files to commit, for whatever reason. So

[Rails] Re: active record question

2010-07-08 Thread RailsFan Radha
I come from a db world. Can someone interpret this please, self.questions.reject{|q| q.nil?}.all I'm overwhelmed by the syntax in the second line, self.questions.reject{|q| q.nil?}.all def needed_questions self.questions.reject{|q| q.nil?}.all end something like that. i can somewhat

[Rails] Re: show action - restrict manual url change from user to view

2010-07-08 Thread RailsFan Radha
Thanks Matt. I see a lot of named_scope question. I have just started with rails and have created a few paages manually without scaffolding, but producing the same results. That is where i stand with rails. I am not clear on the named_scope. Sorry for this silly question. What is this

Re: [Rails] hidden_field vs. form_for Parameter

2010-07-08 Thread DK
If I understand you question, the first. The second puts unnecerssary hidden field on the form and the form helper already has the I'd embeded. Only reason you would want the hidden field is if you needed it perhaps for ajax/js purposes. On 7/8/10, Bob Nadler bnad...@comcast.net wrote: Hi, I

[Rails] Re: View Path and Plugins

2010-07-08 Thread Greg Willits
Frederick Cheung wrote: I believe these days that if you plugin contains a folder called app, itself containing a folder called views then that will be added to the view paths automatically That worked. I went back and tried the unshift thing too, this time with a path that mirrored

[Rails] RoR Sphinx-search (on Windows Xp) Guidance Request

2010-07-08 Thread ashu
Hui all, i am trying to implement sphinx search (on Windows Xp) engine in my app. nut it fails in the several point i don't know the actual procedure . Can anyone help me on this to implement sphinx-search (on Windows Xp). or any good tutorails you please inform me thanks in advance. -- You

[Rails] Re: active record question

2010-07-08 Thread Marnen Laibow-Koser
RailsFan Radha wrote: I come from a db world. Can someone interpret this please, self.questions.reject{|q| q.nil?}.all I'm overwhelmed by the syntax in the second line, self.questions.reject{|q| q.nil?}.all Go look up the relevant functions (especially reject) in the documentation.