[Rails] Saving data from the output window to a text file
Hi group, I'm a complete novice who is having lots of fun discovering Ruby, Ruby on Rails / Watir. Good bits of software. I wanted to record the info in the output window, into a text file. I wanted to do this in Ruby as I don't know enough about R-o-R. Can anyone help me out on this. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] [JOBS] Calling all Ruby on Rails and/or Oracle Application Express Gurus!!
Are you NZ based (or in the process of relocating) and a Ruby on Rails and/or Oracle Application Express guru?? Then read on…… We are on the look out for people with the following technical skills ROR Developers: Ruby on Rail SQL Unix/Linux HTML/CCS/Javascript Oracle Apex Developers: SQL HTML/CSS/Javascript Working knowledge of RAD development methodologies In addition to these key technical skills you will also need to have good people and communication skills, excellent leading , planning and organising skills - additional BA or PM skills would be advantageous. You will be working on large projects that vary in duration. Perm and contract roles available. If you have these skills and want to find out more, please contact Jane at Kelly Services Wellington on [EMAIL PROTECTED] Get registered today and start working tomorrow!!! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: I am New to Ruby..Please Help me ON start
also http://www.tutorialspoint.com/ruby-on-rails/index.htm http://www.tutorialspoint.com/ruby-on-rails-2.1/index.htm also search to get book "Agile Web Development with Rails " 3rd edition. it ll helpful for u.. -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: I am New to Ruby..Please Help me ON start
better go through this "http://fairleads.blogspot.com/";. it is more basic thinks -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: I am New to Ruby..Please Help me ON start
ok.. i never used windows for development. ubuntu or linux is good for development. -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] PHP Developer Job Opportunity - Austin, TX
PHP Developer Capital Thought, a growing technology and consulting firm, is ready to hire an experienced and talented PHP Developer who is equally passionate about Ruby on Rails and other cutting edge languages and frameworks. This person will take over responsibility for development and maintenance of our sports media social marketing tool called BuzzManager, which over time will transition over to Ruby on Rails. Key Requirements we'd like to see in the ideal candidate: • You can demonstrate expertise in writing high-quality object- oriented enterprise-grade applications primarily in PHP/MySQL • You can demonstrate understanding and comprehension of design patterns and algorithms • You’d like to get your hands dirty with Ruby on Rails • You have UNIX/Linux and Windows working knowledge • You are a motivated, self starter who can work as a team and autonomously • You are open to learning, are adaptable and are a master at multitasking Things for you to consider: • Opportunity to work with smart, fun and fast-moving team • Do what you love and are passionate about • If you like sports, this is just a really cool opportunity to blend technology and sports in a job that actually pays you really well! • Cool downtown office If you think this could be a good match, please email your resume over to our recruiting team: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Please help newb - observe_field?
Hi Richard, I have been posting like crazy to get achieve the same functionality. I found the autocomplete doesn't use a regular input tag so you can't use observe_field on an autocomplete field. I did however find an auto- complete plugin that will pass the id from the model so you can use the id to lookup your information. I'm not sure how to implement it however. Once I get that info, I'll let you know what I came up with. Here's the link to the plugin, and if you already found this, or know what to pass to the observe_field, I would be very thankful. http://model-ac.rubyforge.org/ modelautocompleter is the name. On Nov 6, 12:53 pm, Richard Scott <[EMAIL PROTECTED]> wrote: > thanks everyone, > > I am using an autocomplete text field with associations following ryan > bates rails cast #102. > > What i would like is when I autocomplete a customer name for their > "customer address" to show up in an editable text field below. > > i'm currently using an observe_field, but not sure if this is the right > way. > > [code] > > <%= text_field_with_auto_complete :workorder, :customer_name, {}, { :url > => formatted_customers_path(:js), :method => :get, :with => "'search=' + > element.value" } %> > <%= observe_field :workorder_customer_name, > :url => { :controller => :customers, :action => :results }, > :frequency => 3 > %> > [/code] > > and i've been playing around with some rjs and partials with no success. > I am very new to RoR, so any help would be appreciated, but it may have > to be "dumbed down" :) > > thanks for your time. > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] rake db:migrate:reset
When I do a "rake db:migrate:reset" does this erase/drop the "schema_migrations" db so that all the migrations are then rerun or applied in order? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: validates acceptance of question
Thanks for your help. That was it. Remove the quotes and it works. On Dec 3, 9:36 am, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > On Dec 2, 2008, at 10:05 PM, [EMAIL PROTECTED] wrote: > > > > > Yes, :agreement is a field in my database. Should I remove it? > > In any case I did set the :accept => "true", but it didn't change > > anything. I get the same error when I submit the form whether or not > > the box is checked. > > Set :accept => true (no quotes). That's how I read the docs... if > it's a database column, you need that. > > > The html shows: > > > > id="agent_agreement" name="agent[agreement]" type="checkbox" > > value="1" /> > > > Am I reading this right that after the checkbox value is set to "1" > > that then there is a hidden value that is setting it to "0"? Is this > > supposed to be this way? > > > On Dec 2, 7:26 pm, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > >>> I have a terms of service agreement attached to a checkbox. It seems > >>> to work ok and I see > > >>> "agreement"=>"0" when the box is not checked in the development > >>> log > > >>> and > > >>> "agreement"=>"1" when the box is checked in the log. > > >>> But in the model I this validation: > > >>> validates_acceptance_of :agreement, > >>> :message => "Please accept the terms to > >>> proceed" > > >>> So when the form is actually filled out, no matter whether the box > >>> is > >>> checked or not I get: > > >>> 1 error prohibited this agent from being saved > > >>> There were problems with the following fields: > > >>> -Agreement, Please accept the terms to proceed > > >>> So what am I missing to get this to work? > > >> is :agreement a field in your database? if so the docs say... > > >> :accept - Specifies value that is considered accepted. The default > >> value is a string "1", which makes it easy to relate to an HTML > >> checkbox. This should be set to true if you are validating a database > >> column, since the attribute is typecast from "1" to true before > >> validation. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: validates acceptance of question
Yes, :agreement is a field in my database. Should I remove it? In any case I did set the :accept => "true", but it didn't change anything. I get the same error when I submit the form whether or not the box is checked. The html shows: Am I reading this right that after the checkbox value is set to "1" that then there is a hidden value that is setting it to "0"? Is this supposed to be this way? On Dec 2, 7:26 pm, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > > I have a terms of service agreement attached to a checkbox. It seems > > to work ok and I see > > > "agreement"=>"0" when the box is not checked in the development log > > > and > > > "agreement"=>"1" when the box is checked in the log. > > > But in the model I this validation: > > > validates_acceptance_of :agreement, > > :message => "Please accept the terms to > > proceed" > > > So when the form is actually filled out, no matter whether the box is > > checked or not I get: > > > 1 error prohibited this agent from being saved > > > There were problems with the following fields: > > > -Agreement, Please accept the terms to proceed > > > So what am I missing to get this to work? > > is :agreement a field in your database? if so the docs say... > > :accept - Specifies value that is considered accepted. The default > value is a string "1", which makes it easy to relate to an HTML > checkbox. This should be set to true if you are validating a database > column, since the attribute is typecast from "1" to true before > validation. --~--~-----~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] validates acceptance of question
I have a terms of service agreement attached to a checkbox. It seems to work ok and I see "agreement"=>"0" when the box is not checked in the development log and "agreement"=>"1" when the box is checked in the log. But in the model I this validation: validates_acceptance_of :agreement, :message => "Please accept the terms to proceed" So when the form is actually filled out, no matter whether the box is checked or not I get: 1 error prohibited this agent from being saved There were problems with the following fields: -Agreement, Please accept the terms to proceed So what am I missing to get this to work? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Accessing Web service methods in Rails 2.x
Hi I'm new to ROR. I have to access web service methods for the app i'm working on now. I tried creating a web service to get a feel of it using actionwebservice. I installed the gem but I don't think my rails installation recognises it. (Error: no such file to load -- actionwebservice) Anyone has any advise on this. Thanks in advance. viper --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: classic_pagination error in rails-2.2
Thanks everyone for the help. I got classic pagination installed, as well as scaffolding. Still getting errors. NameError in EventsController#index undefined local variable or method `add_instance_variables_to_assigns' for # Any ideas? Should I just throw away (or burn) this book and buy something newer? Thanks On Nov 24, 5:42 am, Hasham <[EMAIL PROTECTED]> wrote: > Or install updated plug from git://github.com/hasham2/classic_pagination.git > > or by running > > script/plugin install git://github.com/hasham2/classic_pagination.git > > On Nov 19, 3:50 pm, Luke Pearce <[EMAIL PROTECTED]> > wrote: > > > You need to change two lines in the pagination.rb file. > > > From this: > > > options[:singular_name] ||= Inflector.singularize(collection_id.to_s) > > options[:class_name] ||= Inflector.camelize(options[:singular_name]) > > > To this: > > > options[:singular_name] ||= > > ActiveSupport::Inflector.singularize(collection_id.to_s) > > options[:class_name] ||= > > ActiveSupport::Inflector.camelize(options[:singular_name]) > > -- > > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] trying to understand file loading, dependencies, etc. in rails
I'm developing on Windows, using InstantRails and i've run into a problem. My development workflow, till now, has been as follows: 1. start the server: ruby script/server --debug 2. run my application by invoking a controller from the browser - observe behaviour 3. edit source file to fix bug/change behaviour 4. save source file 5. goto #2 This has worked really well for me, until recently. The bulk of the code that I am working on is in a file ('foo.rb') that is in the model directory but that is not associated with a specific model. It declares a certain constant that I would like to be able to access from my controller. So - in my controller, I have required foo.rb (require "foo.rb"). This seems to have broken my nice comfortable workflow. Now - when I make changes in foo.rb and save foo.rb, the changes are not picked up and have no effect on program execution. I need restart the server in order to pick up the changes. I assume that somehow, requiring foo.rb in my controller prevents it from being reloaded automatically as it had been previously. Is there a way to force foo.rb to be reloaded after a change? Other suggestions for how to get aorund this? Many thanks. Yoram --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Rails Logger
I just dealt with the same problem: from http://mikenaberezny.com/category/ruby/#rails-logger: "From outside a controller or model, you can pass the logger instance or access it with the constant RAILS_DEFAULT_LOGGER. " also see: http://www.boowebb.com/2008/01/09/writing-to-the-log-in-rails Yoram On Nov 27, 8:25 am, mariek <[EMAIL PROTECTED]> wrote: > how to make default rails logger accessible in my custom modules, > because as I see now its available only for ActiveRecord and some > other Rails modules. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] I need a Ruby on Rails Practition with Commerc ial Experience for £40-50k London Perm
James 02085452111 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: The verdict on Rails scaffolding
> So, the bottom line is that there's nothing fundamentally inept about > it, and it's all up to how you actually use it, right? > -- > Posted viahttp://www.ruby-forum.com/. With the caveat that Rails beginners may be better off avoiding it until their understanding is better. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: trouble accessing ruby constants globally
Thanks Fred. I guess I did not fully understand the sequence in which ruby loads files. I put a "require 'name_of_file_with_constant_declaration'" at the top of the file in which I am using the constant and that fixed it. Yoram On Nov 26, 5:01 am, Frederick Cheung <[EMAIL PROTECTED]> wrote: > On Nov 26, 2:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > I'm trying to declare a constant in one file and access it in another. > > It doesn't seem to be working. > > > Here's my declaration (at the top of a file, remainder of file omitted > > for brevity): > > > NUM_SECTIONS_TO_PARSE = 7 > > > class UserDataFile < File > > > def self.parse_file(src_name, parse_progress) > > > (other stuff follows) > > > Here's where i'm trying to access it: > > > parse_progress = Array.new(::NUM_SECTIONS_TO_PARSE, ::NOT_YET_PARSED) > > > it fails with the message: uninitialized constant > > NUM_SECTIONS_TO_PARSE > > > I've run into this problem several times before and always somehow > > hacked my way around it, but I want to get it right this time. Any > > help appreciated. > > Has that file been loaded at the point you try to use that constant? > > Fred > > > Yoram > > --~--~-~--~~~---~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Passing an array List of Object
I guess there is no solution to this problem... On Nov 17, 12:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi friends, > > I'm trying to pass an Array list of Objects that I have captured on > the fly after querying a web service. I have the array list available > with me. Now, the issue that I'm facing is that I would want to pass > the Array List of objects to another action defined in my controller. > Whenever I'm using the redirect_to function, The Array List is being > treated as String and I'm not able to manipulate (sort, paginate...) > the object list. Presently what I'm doing is I'm placing the Array > List in a session variable and performing the manipulations. However, > this is impacting the speed of program execution. I would really > appreciate any help from you guys. > > To give you guys a feel of things.. > > > Controller Code:: > = > > def create_obj_list > > #= > #Code for initializing the call to the web service by calling the > Lib files > #= > @new_arr=[] > request=GetObjectsByCallingFunction(param0,param1) > response=ObjectType.new > response=getTheObjectListCall(request) > response.each{ |arr > @new_arr< } > > #= > #This is where I'm trying to pass the Object list > #= > > redirect_to :action=>'passed_obj_list', :value=>@new_arr > > end > > def passed_obj_list > @arr_for_manipulation=[] > @arr_for_manipulation=params[:value] #=> This is being treated as a > String.. No Objects are available.. > > #= > # Code for Manipulation > #= > > end > > Hope to hear from you soon.. > > with warm regards, > > Chandragupta --~--~-~--~~----~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] trouble accessing ruby constants globally
I'm trying to declare a constant in one file and access it in another. It doesn't seem to be working. Here's my declaration (at the top of a file, remainder of file omitted for brevity): NUM_SECTIONS_TO_PARSE = 7 class UserDataFile < File def self.parse_file(src_name, parse_progress) (other stuff follows) Here's where i'm trying to access it: parse_progress = Array.new(::NUM_SECTIONS_TO_PARSE, ::NOT_YET_PARSED) it fails with the message: uninitialized constant NUM_SECTIONS_TO_PARSE I've run into this problem several times before and always somehow hacked my way around it, but I want to get it right this time. Any help appreciated. Yoram --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: script/dbconsole
That did it. Thanks! On Nov 25, 4:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm running rails 2.2.2. Is script/dbconsole part of this or do I have > to somehow install it? > > When I run script/dbconsole I get: > > -bash: script/dbconsole: No such file or directory > > But running script/console I do get: > > script/console > Loading development environment (Rails 2.1.1) > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] script/dbconsole
I'm running rails 2.2.2. Is script/dbconsole part of this or do I have to somehow install it? When I run script/dbconsole I get: -bash: script/dbconsole: No such file or directory But running script/console I do get: script/console Loading development environment (Rails 2.1.1) >> --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: The verdict on Rails scaffolding
Scaffolding adds things you may or may not want. It's an easy starting point. Sometimes I use it when I need a very simple crud interface. BUT I never use much of the generated views and I'm careful to delete the bits I don't want and change the rest. It also saves a tiny amount of effort to generate the scaffold and do a quick add to my repository. Nothing gets forgotten that way. I've noticed that a lot of beginners seem to get in trouble with scaffolding. They don't necessarily know what all the pieces generated are or how they fit together, so they don't know what needs changed or what needs deleted. So they end up with effects they don't understand. For beginners I would recommend coding from the ground up by hand until they reach the level where they KNOW what the scaffold will produce and how closely it resembles what they really want. On Nov 25, 4:59 am, Ralph Wood <[EMAIL PROTECTED]> wrote: > For every tutorial that uses scaffolding, there's an article that says > you shouldn't use it in real websites. Supposedly it just serves to > "sketch things out quickly", "test database connectivity" and other > stuff. Some say you're not even supposed to use it and then edit it > later. I don't get why. > > What is it about scaffolding that makes it virtually useless? It > generates some code; surely I could just expand on it or "fix" what's > wrong with it later, right? Apparently not. How is it different from me > making my own CRUD base files and copypasting it into every project? > > I just don't get it. > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Code Review Tool
I've done some Googlin' and found this blog post: http://devver.net/blog/2008/10/ruby-code-quality-tools/ It features some Ruby code quality checking tools: - Roodi - Dust - Flog - Saikuro Maybe some of 'em will be helpful. Attila On Nov 25, 2:22 pm, Rob Biedenharn <[EMAIL PROTECTED]> wrote: > Is that tool going to explain how to make your code better? Or just > how to make your code get a better score? If this wonderful script > tells you that your code needs some serious help, will you be hiring > someone then?? > > -Rob > > On Nov 25, 2008, at 8:32 AM, Matt Grande wrote: > > > > > Ryan, the average code review tool for .Net is under $1000, and RoR > > apps are generally cheaper than that or free. Can you hire someone > > for under $1000? Sure, you don't have the hands-on approach of a real > > person, but running a script is exactly one hell of a lot faster. > > > - Matt. > > > On Nov 25, 5:55 am, Ryan Bigg <[EMAIL PROTECTED]> wrote: > >> Or you could hire a REAL PERSON (I know, shocking, isn't it?) to > >> check > >> your code for you! > >> - > >> Ryan Bigg > >> Freelancerhttp://frozenplague.net > > >> On 25/11/2008, at 7:58 PM, [EMAIL PROTECTED] wrote: > > >>> try netbeans IDE. > >>> It checks my code. > > >>> regards > >>> svend > > >>> On Nov 25, 9:35 am, Karthi kn <[EMAIL PROTECTED]> > >>> wrote: > >>>> A tool which can test the quality of our all ruby code in our rails > >>>> application. > >>>> I tried with the gem called "Roodi" to check my code. Is there any > >>>> other > >>>> effective tool for this? > >>>> -- > >>>> Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Code Review Tool
try netbeans IDE. It checks my code. regards svend On Nov 25, 9:35 am, Karthi kn <[EMAIL PROTECTED]> wrote: > A tool which can test the quality of our all ruby code in our rails > application. > I tried with the gem called "Roodi" to check my code. Is there any other > effective tool for this? > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Subdomain fu woes
Found the fix, it is a bug with the subdomain_fu plugin. the solution may be found here http://www.portallabs.com/blog/2008/10/22/fixing-subdomain_fu-with-named-routes/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Subdomain fu woes
I'm using subdomain_fu successfully and generating subdomain routes like this: rotues.rb: map.city_root '',:controller => 'cities', :action => 'index', :conditions => { :subdomain => /.+/ } using it in a view: <%= link_to city.name, city_root_path(:subdomain => city.subdomain)%> that works well, now I can't figure out how to generate a nested route with subdomain, i.e. miami.site.com/users/1 trying any combination of the form user_path(@user,:subdomain => city.subdomain) does nothing excepnt append a parameter at the end of the url like this: site.com/users/1?subdomain=miami help is greatly appreciated guys! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: How could I uninstall the build-in gems in Leopard
Thanks for both of you. It looks like the simple way is ignoring it... On Nov 18, 5:23 am, "Brian Hogan" <[EMAIL PROTECTED]> wrote: > On our setups, we simply use the built-in mac stuff and then update the old > versions. > > gem update --system > gem install rails > > You can safely ignore the old versions without a problem. > > On Mon, Nov 17, 2008 at 4:04 AM, Frederick Cheung < > > [EMAIL PROTECTED]> wrote: > > > On Nov 17, 8:46 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > I am wondering how could I uninstall the old version of these gems? > > > > And another question is that I checked the rake file executed which > > > is /usr/bin/rake > > > I didn't find any information or path set there that told the console > > > which rake it should call? If I wanna to use an old version of rake or > > > even rails, how should I do? > > > To be honest, I wouldn't bother. If it's in /System, leaving it alone > > is generally a good idea. It doesn't do any harm having multiple > > versions of gems installed. The executables gem installs try and load > > the most recent version of the associated gem. You can force a > > particular one, eg > > > rake _0.7.3_ > > > runs that version of rake. > > > Fred --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Free software projekt seeking for help
Hey everyone, I am the developer of ScopePort: A free remote monitoring server. Yes, another one. Please don't ask why there is a need for another remote monitoring server. Check the website of ScopePort or this blog post for the answer of your not asked question: http://blog.scopeport.org/remote-monitoring/defining-good-remote-monitoring-server/ :) Thank you! The Web Interface was initially written in PHP. As the needs were rising I PHP considered as not flexible or just good enough to fulfill my needs. This is why I recently decided to re-write the whole Web Interface with Rails. The Layout was ready so the development could start immediately. I already implement some controllers but I know that I need some support as soon as possible. In this state of early development of the Web Interface (the server and clients are ready for a beta test but worthless without a Web Interface) we can even think about further structure and development because nothing has to stay as it is. I for myself am quite new to Rails so it's safe to say that there will be some things that should be changed. I need your experience here to keep our project flexible. ScopePort is licensed under the terms of the GPL. The Website of ScopePort: http://www.scopeport.org/ Repositories are hosted on GitHub.com Thanks for your time and your interest in free software. Best regards from Hamburg, Germany Lennart Koopmann http://blog.scopeport.org/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Mailer attach files that are posetd in a respository on the web
Yes it would need to be for all my users. I didn't think it would be possible. Thank you for your help On Nov 21, 1:23 pm, "James Mitchell" <[EMAIL PROTECTED]> wrote: > Yes and No. > > Do you mean just for you? Or for all your users? > > If just for you, sure, just figure out a way to map a drive (windows) > or mount a remote file share (osx/linux) and it will be available from > the file picker. > > If it's something you want all your users to see ... no. That's not > possible with the browser file input selector. You could create a > page that lists the remote location files similar to a file input, > like in a popup window or redbox, but you would have to implement that > yourself in your app. > > Hope that helps. > > -- > James Mitchell > > On Fri, Nov 21, 2008 at 3:56 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > I have set up my application to send e-mails along with attachments, > > however I would like the ability for the "browse" to search a file > > sharing repository that we have posted on the web. Right now it just > > searches and uploads files I have on my desktop. Has anyone had any > > success attaching files that are stored on a web page? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Mailer attach files that are posetd in a respository on the web
I have set up my application to send e-mails along with attachments, however I would like the ability for the "browse" to search a file sharing repository that we have posted on the web. Right now it just searches and uploads files I have on my desktop. Has anyone had any success attaching files that are stored on a web page? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: sqlite3 has gone...
After reflecting here what iI think, In fact when you use rubygems it add all lib folder of each gem to the load path. So when you require sqlite3 the system try loading all or the first file the file named sqlite3 exinsting in the load path and loading a dll file on a system different than windows cause an error. On 21 nov, 15:43, Karel Minarik <[EMAIL PROTECTED]> wrote: > Hi, > > this is closely related to datamapper and data_objects. It happened to > me yesterday when installed Integrity app and it was *quite* nasty (no > such file... in every Rake task etc). > > Solution which has worked for me was from namelessjohn at > [EMAIL PROTECTED] [1]: > > namelessjon_ # karmi_: sudo rm /path/to/gems/do_sqlite-0.9.7/lib/ > sqlite3.dll > > Apparently do_sqlite3 gets into the path somehow. > > --karmi > > [1]http://irclogger.com/sinatra/2008-11-20 > > On Nov 21, 7:41 am, "Dj [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Some precision : > > launching the same command in the sqlite3 gem work. > > I install sqlite3 gem iin my local gem path (~/.gem/ruby/1 .8/gems) > > but the result is the same > > > On 20 nov, 23:57, "Dj [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > Hi all > > > > I've the same problem since this morning. > > > Trying to uninstall/install didn't do the trick. > > > > The only thing i've done since this yesterday (all work fine > > > yesterday) is installing updating datamapper. > > > > If anyone has some clues or tips to help me. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: sqlite3 has gone...
It work for me too. Big thanks for the help. I think I couldn't find it alone. On Nov 21, 3:43 pm, Karel Minarik <[EMAIL PROTECTED]> wrote: > Hi, > > this is closely related to datamapper and data_objects. It happened to > me yesterday when installed Integrity app and it was *quite* nasty (no > such file... in every Rake task etc). > > Solution which has worked for me was from namelessjohn at > [EMAIL PROTECTED] [1]: > > namelessjon_ # karmi_: sudo rm /path/to/gems/do_sqlite-0.9.7/lib/ > sqlite3.dll > > Apparently do_sqlite3 gets into the path somehow. > > --karmi > > [1]http://irclogger.com/sinatra/2008-11-20 > > On Nov 21, 7:41 am, "Dj [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Some precision : > > launching the same command in the sqlite3 gem work. > > I install sqlite3 gem iin my local gem path (~/.gem/ruby/1 .8/gems) > > but the result is the same > > > On 20 nov, 23:57, "Dj [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > Hi all > > > > I've the same problem since this morning. > > > Trying to uninstall/install didn't do the trick. > > > > The only thing i've done since this yesterday (all work fine > > > yesterday) is installing updating datamapper. > > > > If anyone has some clues or tips to help me. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Question about auto completion field
try this: http://wiki.rubyonrails.org/rails/pages/How+to+use+text_field_with_auto_complete On 20 nov, 23:52, Valentino Lun <[EMAIL PROTECTED]> wrote: > Dear all > > I am reading a rails cookbook about the auto_complete_for function, the > code as below > > app/controllers/musicians_controller.rb: > > class MusiciansController < ApplicationController > > auto_complete_for :musician, :name > > def index > end > > def add > # assemble a band... > end > end > > app/views/musicians/index.rhtml: > > Musician Selection > > <% form_tag :action => :add do %> > <%= text_field_with_auto_complete :musician, :name %> > <%= submit_tag 'Add' %> > <% end %> > > My question is that, if the name attribute consists lots of duplicated > values, how can I distinct them before pass to auto_complete_for? I > afraid the performance would be affected if not to distinct it. > > Thank you very much. > > Valentino > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: How to read the logs?
The RedCloth gem is installed: RedCloth (4.1.1, 4.1.0) That's why I'm going nuts trying to figure this out. On Nov 18, 2:48 pm, Bobnation <[EMAIL PROTECTED]> wrote: > I can vouch for this. I haven't been reading logs for long, but I'm > getting better the more I do it ... which is bad, because it means I'm > making a lot of mistakes. I digress however. > > It does look like you are missing the RedCloth gem on your production > server. > > On Nov 18, 2:42 pm, Frederick Cheung <[EMAIL PROTECTED]> > wrote: > > > [EMAIL PROTECTED] wrote: > > > Can anyone tell me where I can learn how to read and decipher the > > > logs? I've done a few google searches and nothing comes up. > > > > Specifically, I just uploaded my first app to a production server and > > > it doesn't work and I got the following even though it works perfectly > > > fine on my development machine: > > > I'm not sure there's any substitute for just good old fashioned > > experience. In this case there's a missing RedCloth library - I'd > > guess you're missing the redcloth gem on your server. > > > Fred > > > > ctionView::TemplateError (uninitialized constant > > > Err::Acts::Textiled::ClassMethods::RedCloth) on line #26 of viewer/ > > > show.html.erb: > > > 23: > > > 24: <% else %> > > > 25: > > > 26: <%= @page.body %> > > > 27: > > > 28: <% end %> > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ > > > active_support/dependencies.rb:276:in `load_missing_constant' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ > > > active_support/dependencies.rb:468:in `const_missing' > > > /home/admin/book/vendor/plugins/acts_as_textiled/lib/ > > > acts_as_textiled.rb:24:in `body' > > > /home/admin/book/app/views/viewer/show.html.erb:26:in > > > `_run_erb_47app47views47viewer47show46html46erb' --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: sqlite3 has gone...
Some precision : launching the same command in the sqlite3 gem work. I install sqlite3 gem iin my local gem path (~/.gem/ruby/1 .8/gems) but the result is the same On 20 nov, 23:57, "Dj [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all > > I've the same problem since this morning. > Trying to uninstall/install didn't do the trick. > > The only thing i've done since this yesterday (all work fine > yesterday) is installing updating datamapper. > > If anyone has some clues or tips to help me. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: sqlite3 has gone...
Hi all I've the same problem since this morning. Trying to uninstall/install didn't do the trick. The only thing i've done since this yesterday (all work fine yesterday) is installing updating datamapper. If anyone has some clues or tips to help me. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Problem with gem
Hi Manisha, Actually Gem installation need enough memory on your server/system and Bandwidth. or if it is not just download that gem and install specific. like : gem install rails-2.0.2.gem, Thanks, DeployD. On Nov 18, 3:48 pm, Manisha <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to install ROR in Ubuntu on my virtualbox VM. > I followed the instruction on Documents for installation of the > same.As i am working in office where we have to deal with proxy; i > have also set the appropriate proxy. > after installing Rubygems, I can do > > $ sudo gem update > > but cannot do > $ sudo gem update --system > > or even $ sudo gem install .. > > The Error which I am getting is > > ERROR: http://gems.rubyforge.org/does not appear to be a repository > ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) > Errno::ETIMEDOUT: Connection timed out - connect(2) (http:// > gems.rubyforge.org/yaml) > > I am unable to understand where the problem is. Can anybody help > please? :(( --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Creating a Query and then a select box based off query results
Hello, I am a newbie here and was hoping someone had some experience and suggestions on how to accomplish the below task: I would like to figure out how to give my users a prepopulated list based off there selection. I am creating am application that users specific servers and would like to show them the list of suppliers who build these servers. For example, if they chose a server X200 the next box would then prepopulate its self with the supplier thats is responsible for building this server. Anyone have any idea how I would go about doing this. I have a query that pulls the data but I have no idea what my next steps should be. Thank You, --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: dynamic condition for has_one and eager loading issue
Wow, that sounds complicated. :-) However, I m really interested in this topic. Maybe you can explain me the proposed "rails way" to accomplish for example a relation which depends on the currently logged in user (just as an example) Thanks a lot in advance... Volker --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Database Views in Rails 2.2
Hi, we have a problem upgrading from Rails 2.1.2 to Rails 2.2 because of some Database Views (PostgreSQL) we use. rake db:test:clone_structure is copying the necessary Database Views to the test database. But when I run rake test/spec I see the line FATAL: database "_test" does not exist every time I run rake test/spec. After running the tests the Views which did exist after clone_structure do not exist any more. Is there a way to fix this? Thanx, Tobi --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] how would you refactor this to make it more DRY
i have your typical nested resource pattern, and at most any resource is one level deep... so for a model PurchaseOrder which is optionally nested under Customer ive worked up this before_filter... but the problem is, i have my parent class name hard coded into the function... so i can either copy this to every controller (which i really know in my heart cant be appropriate) or ask for some input... now i know all about resource_controller and the make_resourceful plugins... but they're all a bit too magical and over the top for my needs - as awesome as they may be. anyhow... heres the function. private def load_parent class_name = :customer parent_sym = "#{class_name.to_s}_id".to_sym parent_class = class_name.to_s.classify.constantize # if there is a customer_id in params then load it... #if not return the current controllers class, constantized so i can do things like # @purchase_order = @parent.find(params[:id]) # in my actions and have it work regardless of the presence of a parent or not. @parent = params[parent_sym] ? parent_class.find(params[parent_sym]).send (self.controller_name.tableize.to_sym) : self.controller_name.classify.constantize end --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] How could I uninstall the build-in gems in Leopard
I am a newbie on the Mac and ROR. I am trying to install the rails on my Leopard today and get its done. But I found for many of the gems, there are tow versions installed on my machine. There is a lower version installed at /System/Library/Frameworks/Ruby.framework/ Versions/1.8/usr/lib/ruby/gems/1.8 and an updated version I installed today at /Library/Ruby/Gems/1.8 For example, stanley$ gem list -d rake -a *** LOCAL GEMS *** rake (0.8.3, 0.7.3) Author: Jim Weirich Rubyforge: http://rubyforge.org/projects/rake Homepage: http://rake.rubyforge.org Installed at (0.8.3): /Library/Ruby/Gems/1.8 (0.7.3): /System/Library/Frameworks/Ruby.framework/ Versions/1.8/usr/lib/ruby/gems/1.8 And if I run rake -V, it will tell me that the current version executed is 0.8.3. But if I tried to cleanup the old version installed on my machine, if failed, as the following: stanley$ sudo gem cleanup rake Password: Cleaning up installed gems... :0:Warning: Gem::SourceIndex#search support for Regexp patterns is deprecated Attempting to uninstall rake-0.7.3 ERROR: While executing gem ... (Gem::InstallError) Unknown gem rake = 0.7.3 I am wondering how could I uninstall the old version of these gems? And another question is that I checked the rake file executed which is /usr/bin/rake I didn't find any information or path set there that told the console which rake it should call? If I wanna to use an old version of rake or even rails, how should I do? Thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Passing an array List of Object
Hi friends, I'm trying to pass an Array list of Objects that I have captured on the fly after querying a web service. I have the array list available with me. Now, the issue that I'm facing is that I would want to pass the Array List of objects to another action defined in my controller. Whenever I'm using the redirect_to function, The Array List is being treated as String and I'm not able to manipulate (sort, paginate...) the object list. Presently what I'm doing is I'm placing the Array List in a session variable and performing the manipulations. However, this is impacting the speed of program execution. I would really appreciate any help from you guys. To give you guys a feel of things.. Controller Code:: = def create_obj_list #= #Code for initializing the call to the web service by calling the Lib files #= @new_arr=[] request=GetObjectsByCallingFunction(param0,param1) response=ObjectType.new response=getTheObjectListCall(request) response.each{ |arr @new_arr<'passed_obj_list', :value=>@new_arr end def passed_obj_list @arr_for_manipulation=[] @arr_for_manipulation=params[:value] #=> This is being treated as a String.. No Objects are available.. #= # Code for Manipulation #= end Hope to hear from you soon.. with warm regards, Chandragupta --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: NoMethodError after refresh?
Ah thanks ill give that a try. On Nov 14, 12:41 pm, Frederick Cheung <[EMAIL PROTECTED]> wrote: > Typically this means you have confused rails' dependency system. One > way you can achieve that is using require to load your application > classes instead of require_dependency. I wrote a blog post about that > not too long ago. You should be able to find it if you google for > "required or not" > > Fred > > Sent from my iPhone > > On 14 Nov 2008, at 17:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > This is strange. I'm working on a simple comment system but it has a > > fit when displaying the user names after the first time the page is > > loaded. so if i start the webserver then go to the page everything > > works fine but if i then refresh i get this error. if i remove the > > user.login it works fine always. Also i have other places in the site > > that show the Mode.user.login and they work fine > > > ActionView::TemplateError (You have a nil object when you didn't > > expect it! > > You might have expected an instance of Array. > > The error occurred while evaluating nil.include?) on line #12 of app/ > > views/bids/show.html.erb: > > 11: <% @bid.comments.each do |comment| %> > > 12: <%= comment.user.login %> > > 13: <%= simple_format(comment.comment) %> > > 14: <% end %> > > 15: > > > Any one got an idea of why this is happening? if i set the dev env to > > cache classes then it has no problems.. > > config.cache_classes = true > > > Thanks for any help. --~--~-~--~~----~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] how to determine if a database column has been set?
lets say that i have a column in one of my tables: initial_odometer_reading (type is decimal), which for any particular record, may or may not be set by the user of the application. somewhere in my code, i want to search for those records for which the user has set/initialized this column. how do i do so, properly? i can set the default value in the 'create table' method to be '-1' and then query for '-1', this works, but doesn't seem right. i want to do the right thing here. what is the conventional way to solve this? note that zero is a legitimate value to which the user may set the column. thanks, yoram --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] SiteMesh style mashups with Rails
Has anyone done any Sitemesh stye mashups using Rails? I want to grab an entire HTML page from another site and mash it into my sites layout/ chrome. To do that I would need to strip the head section and the body tags and just plop in the guts. I might also need to grab any links to javascripts or images out of the remote page's head section and put it in my head section. Has anyone done something like this with Rails? Thanks! Steve --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] NoMethodError after refresh?
This is strange. I'm working on a simple comment system but it has a fit when displaying the user names after the first time the page is loaded. so if i start the webserver then go to the page everything works fine but if i then refresh i get this error. if i remove the user.login it works fine always. Also i have other places in the site that show the Mode.user.login and they work fine ActionView::TemplateError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.include?) on line #12 of app/ views/bids/show.html.erb: 11: <% @bid.comments.each do |comment| %> 12: <%= comment.user.login %> 13: <%= simple_format(comment.comment) %> 14: <% end %> 15: Any one got an idea of why this is happening? if i set the dev env to cache classes then it has no problems.. config.cache_classes = true Thanks for any help. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: could not find [gem] locally or in a repository
Actually Gem installation need enough memory on your server/system and Bandwidth. or if it is not just download that gem and install specific. gem install rails-2.0.2.gem, Pls check: i have install json like this. === gem install json Bulk updating Gem source index for: http://gems.rubyforge.org/ Building native extensions. This could take a while... Successfully installed json-1.1.3 1 gem installed Installing ri documentation for json-1.1.3... No definition for cState_configure No definition for cState_configure Installing RDoc documentation for json-1.1.3... No definition for cState_configure No definition for cState_configure Thanks, DeployD. On Nov 14, 9:14 pm, Remco Swoany <[EMAIL PROTECTED]> wrote: > Frederick Cheung wrote: > > On Nov 14, 3:48 pm, Remco Swoany <[EMAIL PROTECTED]> > > wrote: > >> Hi, > > >> Every gem i tried to install i got the message: > > >> Error: Could not find locally or in a repository! > > > Perhaps your gem sources list is borked? > > gem sources > > will display it. > > > Fred > > gem sources > *** CURRENT SOURCES *** > > http://gems.rubyforge.org > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: could not find [gem] locally or in a repository
Use this and then try: gem update --system which specific gem you are trying to install ? Thanks, DeployD. On Nov 14, 8:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Which Rubygem version your are install on system. > Just do > > gem install --system > and then try. > > let me know if there is any error. > Thanks, > Deployd. > > On Nov 14, 8:48 pm, Remco Swoany <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > Every gem i tried to install i got the message: > > > Error: Could not find locally or in a repository! > > > please some help... > > > remco > > -- > > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: could not find [gem] locally or in a repository
Which Rubygem version your are install on system. Just do gem install --system and then try. let me know if there is any error. Thanks, Deployd. On Nov 14, 8:48 pm, Remco Swoany <[EMAIL PROTECTED]> wrote: > Hi, > > Every gem i tried to install i got the message: > > Error: Could not find locally or in a repository! > > please some help... > > remco > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] DeployD
Hello All, We are support to people who have issue with Ruby On Rails deployment. Also we are support to those guys who have issue with Core Linux Administration. Thanks, DeployD. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: dynamic condition for has_one and eager loading issue
What might happen in multithreaded mode?? -- Volker On 13 Nov., 00:12, Mark Reginald James <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > I ve defined the following relation in one of my models with a dynamic > > where condition: > > has_one :selection, > > :foreign_key => 'object_id', > > :conditions => 'selection_type = 1 and account_id = # > > {self.send(:account_id)}' > > > That works perfect, however when I try to eager load that relation I > > am getting the following error when doing a count. Seems that self is > > not really my model class anymore Does anybody know how I can get > > that up and running? > > http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/... > > But be careful if and when you use Rails in multi-threaded mode. > > -- > Rails Wheels - Find Plugins, List & Sell Plugins -http://railswheels.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Where to put custmized files in Rails app?
All right, I got it. I should use __FILE__ to identify the path of my_parser.rb and then to locate the xml file. On Nov 12, 3:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thank you, jemminger. > > That works for me now. However, I've got another issue. I have an > my_parse.rb file to parse an xml file. The directory for these files > is lib/myfiles/my_parse.rb, and lib/myfiles/xml/aa.xml. And also I > have a test file in test/unit/my_parse_test.rb. The error message is: > Errno::ENOENT: No such file or directory - xml/aa.xml when I put the > path to the aa.xml flie like this - xml/aa.xml in my_parse_test.rb. > But, it is OK if the aa.xml is in the same dir as my_parse.rb is with > the path - aa.xml. > So, what is the right path to the aa.xml in my_parse.rb if I put > aa.xml file in xml/aa.xml? > (like this: lib/myfiles/my_parse.rb, and lib/myfiles/xml/aa.xml) > > On Nov 12, 2:55 pm, jemminger <[EMAIL PROTECTED]> wrote: > > > > > you can have as many subdirectories in lib or anywhere else you want. > > you will just have to explicitly require those files or write > > something to auto-require the files in those dirs. > > > e.g. if you make "lib/myfiles/foo.rb", you'll have to put "require > > 'myfiles/foo.rb'" to use it > > > On Nov 12, 1:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > > I may not want to have a directory of files anywhere that much but, > > > what if I want to separate my *rb files from *xml files? The case I am > > > having now is that I have to put all my own files in a signal lib > > > directory which I may not like it very much. Is this ture that I > > > cannot have a sub directory in lib? > > > > On Nov 12, 8:13 am, jemminger <[EMAIL PROTECTED]> wrote: > > > > > The lib directory is included by rails automatically, so any file in > > > > there will be included. If you put it elsewhere you'll have to > > > > specifically require them yourself. > > > > > On Nov 11, 11:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > > wrote: > > > > > > Thank you for the response. > > > > > > I am practicing on v1.7 and it works fine. But, if I move the code > > > > > from components to comp dir in lib, the controller can not fine those > > > > > fine any more. If I put those files in lib directly, it woks fine > > > > > again. How can I maintain a structure of directories in Rails? > > > > > > Thanks, > > > > > > - > > > > > > On Nov 11, 4:15 pm, jemminger <[EMAIL PROTECTED]> wrote: > > > > > > > the "components" dir is deprecated and removed in v2.0+ AFAIK > > > > > > > you'd be better off using the lib dir or making a plugin. > > > > > > > On Nov 11, 1:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > > > > wrote: > > > > > > > > All, > > > > > > > > This is the first time to play on Rails application. Simple > > > > > > > questions: > > > > > > > where to locate/store my own *.rb, and *.txt files in my Rails > > > > > > > app? > > > > > > > I put my *.rb in the components folder so that controllers can see > > > > > > > them without problems. Is this the right place to do that? > > > > > > > But I may not know where to put *.txt files and how to locate > > > > > > > them in > > > > > > > controllers. > > > > > > > > Thank you in advance. > > > > > > > -- Hide quoted text - > > > > > > > - Show quoted text -- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Controller method/action being called twice (once POST and once GET) for file upload - why? - in fact, multiple controller methods are being called twice...
Fred, thanks: Well - per your suggestion, I turned net tracking on in firebug (I'm using firefox). And the problem went away... like Heisenberg said :-). Sorry for bothering the list with such artifact. It's a little scary to see the browser get in to such a state though... Y On Nov 12, 5:48 pm, Frederick Cheung <[EMAIL PROTECTED]> wrote: > On Nov 13, 1:00 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > per the subject line, further investigation reveals that all the > > methods in my controller that i am using, are called exactly twice > > each time i expect them to be called once. i am confused... > > Anything interesting in your controller? Can you see (using tcpdump or > whatever your platform has) whether the browser is actually making two > requests ? > > Fred > > > > > > > On Nov 12, 3:07 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > I'm uploading a file via the user's browser. The index method in my > > > controller is: > > > > <%= form_tag({:action=>'receive_file'}, :multipart => true)%> > > > > > > > > > > > > > > > > I get a form with a 'browse' button and an 'upload' button. I use the > > > browse control to select a file and I press the 'upload' button. > > > > The method 'receive_file' in my controller gets called (with method > > > GET) and executes, then passes control to the corresponding view so > > > far so good. > > > > The strange thing is that behind the scenes, something immediately > > > calls my 'receive_file' method a second time (this time with method > > > POST). > > > > Why is this hapenning? How am I supposed to handle it? I don't want to > > > execute my receive_file method twice. > > > > Thanks for your help, > > > Yoram- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Controller method/action being called twice (once POST and once GET) for file upload - why? - in fact, multiple controller methods are being called twice...
per the subject line, further investigation reveals that all the methods in my controller that i am using, are called exactly twice each time i expect them to be called once. i am confused... On Nov 12, 3:07 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm uploading a file via the user's browser. The index method in my > controller is: > > <%= form_tag({:action=>'receive_file'}, :multipart => true)%> > > > > > > I get a form with a 'browse' button and an 'upload' button. I use the > browse control to select a file and I press the 'upload' button. > > The method 'receive_file' in my controller gets called (with method > GET) and executes, then passes control to the corresponding view so > far so good. > > The strange thing is that behind the scenes, something immediately > calls my 'receive_file' method a second time (this time with method > POST). > > Why is this hapenning? How am I supposed to handle it? I don't want to > execute my receive_file method twice. > > Thanks for your help, > Yoram --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Controller method/action being called twice (once POST and once GET) for file upload - why?
I'm uploading a file via the user's browser. The index method in my controller is: <%= form_tag({:action=>'receive_file'}, :multipart => true)%> I get a form with a 'browse' button and an 'upload' button. I use the browse control to select a file and I press the 'upload' button. The method 'receive_file' in my controller gets called (with method GET) and executes, then passes control to the corresponding view so far so good. The strange thing is that behind the scenes, something immediately calls my 'receive_file' method a second time (this time with method POST). Why is this hapenning? How am I supposed to handle it? I don't want to execute my receive_file method twice. Thanks for your help, Yoram --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Where to put custmized files in Rails app?
Thank you, jemminger. That works for me now. However, I've got another issue. I have an my_parse.rb file to parse an xml file. The directory for these files is lib/myfiles/my_parse.rb, and lib/myfiles/xml/aa.xml. And also I have a test file in test/unit/my_parse_test.rb. The error message is: Errno::ENOENT: No such file or directory - xml/aa.xml when I put the path to the aa.xml flie like this - xml/aa.xml in my_parse_test.rb. But, it is OK if the aa.xml is in the same dir as my_parse.rb is with the path - aa.xml. So, what is the right path to the aa.xml in my_parse.rb if I put aa.xml file in xml/aa.xml? (like this: lib/myfiles/my_parse.rb, and lib/myfiles/xml/aa.xml) On Nov 12, 2:55 pm, jemminger <[EMAIL PROTECTED]> wrote: > you can have as many subdirectories in lib or anywhere else you want. > you will just have to explicitly require those files or write > something to auto-require the files in those dirs. > > e.g. if you make "lib/myfiles/foo.rb", you'll have to put "require > 'myfiles/foo.rb'" to use it > > On Nov 12, 1:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > I may not want to have a directory of files anywhere that much but, > > what if I want to separate my *rb files from *xml files? The case I am > > having now is that I have to put all my own files in a signal lib > > directory which I may not like it very much. Is this ture that I > > cannot have a sub directory in lib? > > > On Nov 12, 8:13 am, jemminger <[EMAIL PROTECTED]> wrote: > > > > The lib directory is included by rails automatically, so any file in > > > there will be included. If you put it elsewhere you'll have to > > > specifically require them yourself. > > > > On Nov 11, 11:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > wrote: > > > > > Thank you for the response. > > > > > I am practicing on v1.7 and it works fine. But, if I move the code > > > > from components to comp dir in lib, the controller can not fine those > > > > fine any more. If I put those files in lib directly, it woks fine > > > > again. How can I maintain a structure of directories in Rails? > > > > > Thanks, > > > > > - > > > > > On Nov 11, 4:15 pm, jemminger <[EMAIL PROTECTED]> wrote: > > > > > > the "components" dir is deprecated and removed in v2.0+ AFAIK > > > > > > you'd be better off using the lib dir or making a plugin. > > > > > > On Nov 11, 1:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > All, > > > > > > > This is the first time to play on Rails application. Simple > > > > > > questions: > > > > > > where to locate/store my own *.rb, and *.txt files in my Rails app? > > > > > > I put my *.rb in the components folder so that controllers can see > > > > > > them without problems. Is this the right place to do that? > > > > > > But I may not know where to put *.txt files and how to locate them > > > > > > in > > > > > > controllers. > > > > > > > Thank you in advance. > > > > > > -- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] dynamic condition for has_one and eager loading issue
Hi, I ve defined the following relation in one of my models with a dynamic where condition: has_one :selection, :foreign_key => 'object_id', :conditions => 'selection_type = 1 and account_id = # {self.send(:account_id)}' That works perfect, however when I try to eager load that relation I am getting the following error when doing a count. Seems that self is not really my model class anymore Does anybody know how I can get that up and running? Thanks a lot in advance NoMethodError (undefined method `account_id' for #): C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/associations.rb:1621:in `interpolate_sql' (eval):1:in `interpolate_sql' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/associations.rb:1600:in `association_join' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/associations.rb:1599:in `each' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/associations.rb:1599:in `association_join' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:184:in `construct_calculation_sql' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:184:in `collect' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:184:in `construct_calculation_sql' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:212:in `execute_simple_calculation' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:121:in `calculate' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:117:in `catch' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:117:in `calculate' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/calculations.rb:45:in `count' --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Where to put custmized files in Rails app?
I may not want to have a directory of files anywhere that much but, what if I want to separate my *rb files from *xml files? The case I am having now is that I have to put all my own files in a signal lib directory which I may not like it very much. Is this ture that I cannot have a sub directory in lib? On Nov 12, 8:13 am, jemminger <[EMAIL PROTECTED]> wrote: > The lib directory is included by rails automatically, so any file in > there will be included. If you put it elsewhere you'll have to > specifically require them yourself. > > On Nov 11, 11:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > Thank you for the response. > > > I am practicing on v1.7 and it works fine. But, if I move the code > > from components to comp dir in lib, the controller can not fine those > > fine any more. If I put those files in lib directly, it woks fine > > again. How can I maintain a structure of directories in Rails? > > > Thanks, > > > - > > > On Nov 11, 4:15 pm, jemminger <[EMAIL PROTECTED]> wrote: > > > > the "components" dir is deprecated and removed in v2.0+ AFAIK > > > > you'd be better off using the lib dir or making a plugin. > > > > On Nov 11, 1:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > wrote: > > > > > All, > > > > > This is the first time to play on Rails application. Simple questions: > > > > where to locate/store my own *.rb, and *.txt files in my Rails app? > > > > I put my *.rb in the components folder so that controllers can see > > > > them without problems. Is this the right place to do that? > > > > But I may not know where to put *.txt files and how to locate them in > > > > controllers. > > > > > Thank you in advance. > > > > -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Where to put custmized files in Rails app?
Thank you for the response. I am practicing on v1.7 and it works fine. But, if I move the code from components to comp dir in lib, the controller can not fine those fine any more. If I put those files in lib directly, it woks fine again. How can I maintain a structure of directories in Rails? Thanks, - On Nov 11, 4:15 pm, jemminger <[EMAIL PROTECTED]> wrote: > the "components" dir is deprecated and removed in v2.0+ AFAIK > > you'd be better off using the lib dir or making a plugin. > > On Nov 11, 1:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > All, > > > This is the first time to play on Rails application. Simple questions: > > where to locate/store my own *.rb, and *.txt files in my Rails app? > > I put my *.rb in the components folder so that controllers can see > > them without problems. Is this the right place to do that? > > But I may not know where to put *.txt files and how to locate them in > > controllers. > > > Thank you in advance. > > -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Where to put custmized files in Rails app?
All, This is the first time to play on Rails application. Simple questions: where to locate/store my own *.rb, and *.txt files in my Rails app? I put my *.rb in the components folder so that controllers can see them without problems. Is this the right place to do that? But I may not know where to put *.txt files and how to locate them in controllers. Thank you 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Authentication including Authorization (Roles/Rights/Permissions)
http://wiki.rubyonrails.com/rails/pages/Authentication I normally use a bit on the user, to use a more rolebased approach. bool (admin) So in your controller you can just use user.admin? to verify if they are allowed access to the function. regards svend On Nov 11, 6:33 pm, elioncho <[EMAIL PROTECTED]> wrote: > Nick > > I have been reading through the Authlogic docs and it seems nice and > sleek. I think I will test it on my app. Thanks, > > Elías > > On Nov 11, 11:37 am, Nick Hoffman <[EMAIL PROTECTED]> > wrote: > > > Adriano Ferreira wrote: > > > It's been couple of days messing around with Internet looking for a good > > > Authentication including Autorization system/plugin for Ruby On Rails. > > > > I've found lots of sources related to that. However, most of them are > > > old, > > > not frequently updated, not even well documented. > > > > Please, any suggestions/solution considering Rails 2.1? > > > > Thanks in advance. > > > > a2f > > > I've been using Authlogic, and love it. It's fairly new, so doesn't have > > the recognition or contributions that restful-authentication does. > > However, I find that Authlogic's design philosophies are more in tune > > with me than, say, restful-authentication's. > > -Nick > > -- > > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Rails authorization
main paginate: http://wiki.rubyonrails.com/rails/pages/Authentication Bigger aps: http://wiki.rubyonrails.com/rails/pages/restful_authentication smaller aps where REST is not fesiable: http://wiki.rubyonrails.com/rails/pages/Acts_as_authenticated regards svend On Nov 11, 5:34 pm, Nick Hoffman <[EMAIL PROTECTED]> wrote: > Daniel Lopes wrote: > > Hello, anyone know who is the best plug-in for authorization in rails? > > > I found this link > >http://www.vaporbase.com/postings/Authorization_in_Rails > > but is old, maybe today we have something better. > > > Thanks. > > There's no "best". Every situation is different. You need to match your > needs to what the various solutions provide. > > With that said, I've been using Authlogic, and love it. > -Nick > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] bizarre ruby debug behaviour when using variables beginning with character 'u' on windows
I'm using Instant Rails on windows. I'm also using ruby debug. I first stumbled across the problem when an array that I named utilities_used = [] was misbehaving. I added some experimental code and set a breakpoint and started to investigate. Here's my code (it's inside a model file): foo = [] ufoo = [] vfoo = [] utfoo = [] utifoo = [] utils = [] utils_foo = [] foo_used = [] utils_used = [] missing_vehicles = [] debugger When I break into the debugger: (rdb:94) foo [ ] (rdb:94) vfoo [ ] (rdb:94) foo_used [ ] (rdb:94) missing_vehicles [ ] (rdb:94) ufoo #1 E:/InstantRails-2.0-win/rails_apps/Carbon Salon Source Tree/app/ controllers/admin_controller.rb:37 in 'receive_file' (rdb:94) foo NameError Exception: undefined local variable or method `foo' for # (rdb:94) vfoo NameError Exception: undefined local variable or method `vfoo' for # (rdb:94) foo_used NameError Exception: undefined local variable or method `foo_used' for # (rdb:94) missing_vehicles NameError Exception: undefined local variable or method `missing_vehicles' for # Note that, as soon as I inspect an array who's name starts with the letter 'u', everything goes to pot... I tinkered with this some more: Code: foo = ['a', 'b', 'c'] ufoo = ['d', 'e', 'f'] missing_vehicles = [] foo.each {|f| puts f} ufoo.each {|u| puts u} Console output: Processing AdminController#receive_file (for 127.0.0.1 at 2008-11-10 16:58:09) [POST] Session ID: 858773c8b3335d4c6e9a1326e17c7cd0 Parameters: {"user_data_file"=>#, "action"=>"receive_file", "authenticity_token"=>"8 ce751d807f83817a140eb1cc4e463cc8f5b20f0", "controller"=>"admin"} a b c d e f E:/InstantRails-2.0-win/rails_apps/Carbon Salon Source Tree/app/models/ user_data_file.rb:95 #end so - the code itself seems to work, back to the debugger: (rdb:98) foo ["a", "b", "c"] (rdb:98) ufoo #1 E:/InstantRails-2.0-win/rails_apps/Carbon Salon Source Tree/app/ controllers/admin_controller.rb:37 in 'receive_file' (rdb:98) foo NameError Exception: undefined local variable or method `foo' for # (rdb:98) So - it seems to be a problem with the debugger, rather than with ruby. In fact, now that I think of it, i've repeatedly experienced bizarre behaviour when using the debugger to inspect variables that begin with the letter 'u'. Anybody else seen this? I'm new to RoR, so - maybe i'm doing something stupid here... any input, enlightenment would be very much appreciated. Yoram --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Developer required in Cape Town, South Africa
It would be smart to share if you have a RoR server? if the server has SSH access, if it's a apache server and so on. If the server is setup, and there is SSH access, any person anywhere in the would would be able to help setup the application. regards svend On Nov 10, 2:00 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Dear all > > I need a small amount of work done... I have the source code for an > app developed with ROR, but no one who can implement this. I work for > an NGO in Stellenbosch, just outside Cape Town, SA. > > If there are any 'local' people willing to help, I'd be very > grateful. Please contact me on [EMAIL PROTECTED] > > Many thanks > Pieter Meiring --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Developer required in Cape Town, South Africa
Dear all I need a small amount of work done... I have the source code for an app developed with ROR, but no one who can implement this. I work for an NGO in Stellenbosch, just outside Cape Town, SA. If there are any 'local' people willing to help, I'd be very grateful. Please contact me on [EMAIL PROTECTED] Many thanks Pieter Meiring --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Conditinal layout based on controller action.
I have a very basic controller with all the restful actions. What im trying to do i my views is show a "back to links" link in every view except the index view. Im trying to keep it DRY and use some conditional statment in the application.html.erb. I cant seem to get it to work. what i tried was using the link_to_unless helper, but i cant get it to work. <%= link_to_unless({:controller => "links", :action => "index"}, "Back to links", {:action => "index" }) %> while this is rendering the Back to links text, its not creating a link and rendering it in the links controller with any action any ideas on how i can accomplish this? am i using this wrong? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Install in Ruby LinkParser in window
Can everyone help to show me how to install Ruby LinkParser in window? Right now i'm using InstantRails and I couldn't figure way to install LinkParser. Thank you for your attention, and i'm look forward to hearing from you. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: collection_select broken in 2.1.x?
> The dropdown shows the proper entries but the current value of > user.subscriptiontype_id is never selected. OK, nevermind, I had created user.subscriptiontype_id with the wrong type (string). Fixing this fixed the problem. --cro --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] collection_select broken in 2.1.x?
Greetings, Can someone verify for me if collection_select is broken in Rails 2.1.x? I have an administrative form where an administrator can update the subscription level of a user. In the partial I say <%= collection_select(:user, :subscriptiontype_id, Subscriptiontype.find(:all), :id, :dropdown_description) %> which is almost verbatim-copied from the documentation collection_select(:post, :author_id, Author.find(:all), :id, :name_with_initial, {:prompt => true}) The dropdown shows the proper entries but the current value of user.subscriptiontype_id is never selected. Any suggestions? Thanks. --cro --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Ruby and/or Rails Community in Argentina
Claro, http://onrails.com.ar On Nov 2, 10:03 pm, "Rodrigo Fuentealba" <[EMAIL PROTECTED]> wrote: > Hola a Todos, > > ¿Hay alguna comunidad de usuarios Ruby/Rails en Argentina, de la que > ustedes sepan? > > Hello All, > > Is there any Ruby/Rails community in Argentina, that you know/heard of? > > Thanks in advance, > > -- > Rodrigo Fuentealbahttp://www.thecodekeeper.net/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: rspec issues
b) makes sense, though it is surprising: I mean developer-defined errors are usually Exceptions, and should be caught too, no ? I need to pick up my ruby book again. Elise On Oct 31, 10:05 am, "James Mead" <[EMAIL PROTECTED]> wrote: > Hi Elise, > > 2008/10/31 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > - mocking (ok, i'm using mocha, so maybe it isn't rspec): i make a > > mailer raise an error like this: > > DummyMailer.stubs(:deliver_invitation).raises(Exception) > > and in my code, surround this with begin ... rescue, the exception is > > not caught ! > > a) Are you sure deliver_invitation is being called? > b) Are you using just a default rescue clause? This will only rescue > StandardError's and descendants of StandardError. Exception is not a > descendant of StandardError. I think Mocha raises a StandardError by > default, so if you change your stubbing as follows, a default rescue clause > will work... > > DummyMailer.stubs(:deliver_invitation).raises > > If you are still seeing unexpected behaviour, come over to the Mocha mailing > list [1] and we'll see if we can help. > > -- > James.http://blog.floehopper.org > > [1]http://groups.google.com/group/mocha-developer --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: rspec issues
b) makes sense, though it is surprising: I mean developer-defined errors are usually Exceptions, and should be caught too, no ? I need to pick up my ruby book again. Elise On Oct 31, 10:05 am, "James Mead" <[EMAIL PROTECTED]> wrote: > Hi Elise, > > 2008/10/31 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > - mocking (ok, i'm using mocha, so maybe it isn't rspec): i make a > > mailer raise an error like this: > > DummyMailer.stubs(:deliver_invitation).raises(Exception) > > and in my code, surround this with begin ... rescue, the exception is > > not caught ! > > a) Are you sure deliver_invitation is being called? > b) Are you using just a default rescue clause? This will only rescue > StandardError's and descendants of StandardError. Exception is not a > descendant of StandardError. I think Mocha raises a StandardError by > default, so if you change your stubbing as follows, a default rescue clause > will work... > > DummyMailer.stubs(:deliver_invitation).raises > > If you are still seeing unexpected behaviour, come over to the Mocha mailing > list [1] and we'll see if we can help. > > -- > James.http://blog.floehopper.org > > [1]http://groups.google.com/group/mocha-developer --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: rspec issues
> > expected "new", got "/Users/elise/Rails/myapp/app/views/user/profiles/ > > new.html.erb" > > So it expects the full path. That can't be right ? > > nope, it expects new and gets the full path instead. > what's your render command? render :action => :new > Typical ruby thing. "should be" tests for the two > strings are an identical string object (one and the same thingy in > memory) > use: > assigns['page'].menu.should eql("home alone") OK, thanks Elise --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] rspec issues
Hi, i've started using rspec for this project (latest versions: rspec 1.1.9 and rspec-rails 1.1.9), and i stumbled upon the following problems: - render_template: response.should render_template('new') i get the following fail expected "new", got "/Users/elise/Rails/myapp/app/views/user/profiles/ new.html.erb" So it expects the full path. That can't be right ? - should be: doesn't give me the result i expect for two strings that are equal. assigns['page'].menu.should be("home alone") gives me expected "home alone", got "home alone" - mocking (ok, i'm using mocha, so maybe it isn't rspec): i make a mailer raise an error like this: DummyMailer.stubs(:deliver_invitation).raises(Exception) and in my code, surround this with begin ... rescue, the exception is not caught ! Any tips ? Thanks ! Elise --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: select helper
That did it, thanks On Oct 29, 10:43 pm, Thani Ararsu <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Nope, that doesn't work. To clarify, the year part is supposed to be a > > pull down select menu of "Senior, Junior, Sophomore, Freshman" > > > On Oct 29, 10:11 pm, Thani Ararsu <[EMAIL PROTECTED]> > > what is the error ? post it here. > what is your rails version? > > and try this > <%= select :obj,:year ,%w{Senior Junior Sophomore Freshman} %> > > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: select helper
Nope, that doesn't work. To clarify, the year part is supposed to be a pull down select menu of "Senior, Junior, Sophomore, Freshman" On Oct 29, 10:11 pm, Thani Ararsu <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am trying to figure out how to use the "select" helper in changing a > > <%= f.select :year %> > > > but that never works. > > Any help? > > try this > > <%= f.select :year ,Time.now.year-100..Time.now.year %> > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] select helper
I am trying to figure out how to use the "select" helper in changing a scaffold produced "new.html.erb" file. Specifically how do I change: Year In School: <%= f.text_field :year %> so that this shows up as a "drop down box". I've tried different variations of <%= f.select :year %> but that never works. Any help? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: acts_as_authenticated now at github
Good point. But if you see/find a way of making the tasts and so on compaterable with e-mail as well as normal login. I can give you access. What is your github name so I can ad you? On Oct 28, 6:26 pm, jdonnell <[EMAIL PROTECTED]> wrote: > that's what I do, but I do it so often that it gets old. You have to > change the tests too if you care about running them, which I do. > > On Oct 28, 8:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Dear jdonnell > > > I have used AAA with e-mail as their login. > > You just have to change the form, and the model validation. > > But a good point to add to the wiki. > > You can try to do what I explained, and if it works, I will give you > > write access to the wiki, so you can share it with everybody else. > > > regards > > svend --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] paginator
I want to use a paginator-1.1.0 for my list of books in radiant extension plugin. Can you help me, in which way I can create it. Write me soon regards Roberto --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: acts_as_authenticated now at github
Dear jdonnell I have used AAA with e-mail as their login. You just have to change the form, and the model validation. But a good point to add to the wiki. You can try to do what I explained, and if it works, I will give you write access to the wiki, so you can share it with everybody else. regards svend On Oct 27, 11:51 pm, jdonnell <[EMAIL PROTECTED]> wrote: > One feature I've always wanted in AAA is the ability to use email > addresses for logging in instead of the login field. If you're open to > it I can put some effort into it. > > On Oct 27, 6:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > good idea. > > Perhaps we shold branch the project, to have a pre 2.0 part and a post > > 2.0 part? > > > But we could also hold on to .rhtml, since it still works with 2.0 and > > pre 2.0. > > > We could perpaps also intergrade some of the stuff found in the wiki > > in to the default installation? > > > Could you upgrade the wiki with the installation methode? > > > regards > > svend > > > On Oct 27, 1:31 pm, Daniel Bush <[EMAIL PROTECTED]> wrote: > > > > Hi svend, > > > Thanks for this. I just cloned it and took a quick look. > > > Looks like the last serious work was done 2 years ago. > > > > [EMAIL PROTECTED] wrote: > > > > Dear All > > > > > since stikypad went south, AAA + wiki have been down. > > > > > But now AAA + wiki, can be found at > > > >http://github.com/gundestrup/acts_as_authenticated > > > > > Please help me with upgrading the wiki, and if you like, help improve > > > > AAA. > > > > I tried it out against rails 2.1.1. > > > I just did a: > > > % script/plugin git://github.com/gundestrup/acts_as_authenticated.git > > > And then > > > % script/generate authenticated > > > All the tests are working (rake test). > > > > One thing I'd like to do is change .rhtml to .html.erb (the rails 2.x > > > action.format.renderer format). Not sure what to do though with pre > > > rails 2 on this issue. > > > > -- > > > Daniel Bush --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: The Bests Ruby on Rails Development Blog
Great upcoming blogs for Ruby On Rails developers. http://rubyonrails-programming.blogspot.com/ http://rubyonrails4all.blogspot.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: acts_as_authenticated now at github
good idea. Perhaps we shold branch the project, to have a pre 2.0 part and a post 2.0 part? But we could also hold on to .rhtml, since it still works with 2.0 and pre 2.0. We could perpaps also intergrade some of the stuff found in the wiki in to the default installation? Could you upgrade the wiki with the installation methode? regards svend On Oct 27, 1:31 pm, Daniel Bush <[EMAIL PROTECTED]> wrote: > Hi svend, > Thanks for this. I just cloned it and took a quick look. > Looks like the last serious work was done 2 years ago. > > [EMAIL PROTECTED] wrote: > > Dear All > > > since stikypad went south, AAA + wiki have been down. > > > But now AAA + wiki, can be found at > >http://github.com/gundestrup/acts_as_authenticated > > > Please help me with upgrading the wiki, and if you like, help improve > > AAA. > > I tried it out against rails 2.1.1. > I just did a: > % script/plugin git://github.com/gundestrup/acts_as_authenticated.git > And then > % script/generate authenticated > All the tests are working (rake test). > > One thing I'd like to do is change .rhtml to .html.erb (the rails 2.x > action.format.renderer format). Not sure what to do though with pre > rails 2 on this issue. > > -- > Daniel Bush --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] acts_as_authenticated now at github
Dear All since stikypad went south, AAA + wiki have been down. But now AAA + wiki, can be found at http://github.com/gundestrup/acts_as_authenticated Please help me with upgrading the wiki, and if you like, help improve AAA. Please note the AAA was created by technoweenie, and no longer maintained. I have taken over the project from the developer. regards svend --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Thank you Master Cheung for helping me graduate!
Fred, Thank you for running such a fine forum. It is very evident to anyone who follows your forum that you spend a good amount of time helping your your students. I've finished my applications and deployed them ( plug for Litespeed ! ) and now take a breath. Thank you, Kathleen --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: typo install problem - what is plug in 'all' ?
Frederick Cheung wrote: > On Oct 24, 9:00�pm, "[EMAIL PROTECTED] Amon" [EMAIL PROTECTED]> wrote: >> Warning: I am a newbie ROR >> I am trying to install the Typo blog s/w. I ahve extracted the zip file >> frim RubyForge and am trying to set it up with 'rake'. But I get the >> following error message: >> >> C:\ROR\rails_apps\typo1>rake >> (in C:/ROR/rails_apps/typo1) >> rake aborted! >> Cannot find the plugin 'all'! > > That sounds like it needs a version of rails newer than the one you've > got. In environment.rb you can explicitly list the plugins you need > loaded (and the order they are loaded in). To make this less tedious > rails 2.0 allowed you to do something like config.plugins = > [:special_plugin, :all] which means 'load special plugin first then > everything else' rather than having to type out all the plugins used. > Earlier versions of rails would think you would meant a plugin > actually called all. > > Fred Thanks Fred - wow that was quick! I commented out that plugins line ie. # config.plugins = [ 'localization', :all ] and, yes, the problem went away. But then the rake failed on a whole bunch of other problems so I figure this is way beyond me so I'll flag it for now. Thanks for your help though! BTW, I do wonder why it is so hard to find info on GEMS - I still don't know if if need to download the Gem file - the RubyForge download page is no help. I've Googled it and I have the Agile Web Dev with Rails book (minimal info re gems there!). -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] typo install problem - what is plug in 'all' ?
Warning: I am a newbie ROR I am trying to install the Typo blog s/w. I ahve extracted the zip file frim RubyForge and am trying to set it up with 'rake'. But I get the following error message: C:\ROR\rails_apps\typo1>rake (in C:/ROR/rails_apps/typo1) rake aborted! Cannot find the plugin 'all'! (See full trace by running task with --trace) Any ideas? Its probaly something really stupid as I am only just getting to grips with this. The download area also included a gem file - do I need this as well? -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Javascript tooltips in rails?
try this solution: http://www.seesaw.it/en/toolbox/widgets/ On Oct 24, 9:19 am, Prathiba Danthanarayana wrote: > hi all, > can someone give any idea to improve the look and feel in tool tips. i > used javascript to get done this. but it does not look nice. i need to > have more look and feel on this. > > cheers, > prathiba. > > > > Nathaniel Brown wrote: > > Just actually came across something just like this, based on the docs > > anyways. Haven't installed it yet, but sounds promising. > > > Checkout the "Help Engine" at > >http://www.rails-engines.org/wiki/pages/HelpEngine > > > On 7/26/06, Ben Johnson <[EMAIL PROTECTED]> wrote: > > >> Does rails have built in functionality to do javascript tooltips? > > >> -- > >> Posted viahttp://www.ruby-forum.com/. > >> ___ > >> Rails mailing list > >> [EMAIL PROTECTED] > >>http://lists.rubyonrails.org/mailman/listinfo/rails > > > -- > > Kind regards, > > > Nathaniel Brown > > President & CEO > > Inimit Innovations Inc. -http://inimit.com > > -- > Posted viahttp://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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Problem installing Rails 2.1.1 under Suse LINUX - Help needed!
Team, While installing Rails 2.1.1 unde Suse Linux, I came across an error msg telling me that I need this library, libopenssl-ruby. I am running LINUX Suse: 2.6.16.21-0.8-smp. ruby -v ruby 1.8.6 (2008-08-08 patchlevel 286) [i686-linux] I performed a google search and the results was to get the libopenssl- ruby library. I don't know where this library is and how to install it. This is my first experience with Rails and I've been trying to fix this problem for a few days now. I posted questions on the Ruby forum unsuccessfully. Any help is greatly appreciated! Thank you nyc-linux-suse170:/local/demo # ruby script/server => Booting WEBrick... /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/initializer.rb: 229:in `require_frameworks': no such file to load -- openssl (RuntimeError)from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/initializer.rb: 118:in `process'from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/initializer.rb:97:in `send'from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/initializer.rb:97:in `run'from /local/demo/config/environment.rb:13from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ active_support/dependencies.rb:510:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ active_support/dependencies.rb:355:in `new_constants_in' ... 7 levels... from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/server.rb: 39 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from script/server:3 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: RoR on Vista 64bit
Vista64 bit, can run 32bit programs. So there should not be any problems. But last time I tried Vista64 and RoR, it was very slow, when starting my app. regards svend On Oct 22, 11:35 am, sigma <[EMAIL PROTECTED]> wrote: > Hi all > > I've got my development-environment on a vista Notebook. Now I'd like > to switch to 64bit Vista because of the bad RAM-Support of the 32bit > Vista. > My question: > Is RoR running on vista 64bit? > > Thanks for your answers! > > Regards > Christoph --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Rails 2.1, version_fu, ActAsVersioned and => "undefined method `find_version"
Ahh. Now I saw that I find_version was removed from the pluggin... - Henrik --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Rails 2.1, version_fu, ActAsVersioned and => "undefined method `find_version"
I've updated and old app to Rails 2.1, and now I can't get ActAsVersioned to work anymore. I've updated to last version who is updated for Rails 2.1, and also tried VerdsionFU but both give me error message "undefined method `find_version" when I tries to role back to an old version. Can it be that I've not updated anything in my tables which causes this? --- Model: class Article < ActiveRecord::Base # acts_as_versioned version_fu --- Controller: class ArticlesController < ApplicationController @article = Article.find_version(params[:id], params[:versjon]) (Btw. Anybody who have any recommendations according if I should use ActAsVersioned or switch to VersionFU? What is the difference?). - Henrik --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Help with Ruby on Rails
I work for a recruiting/consulting company and we are needing someone to help on a quick phone conference to discuss the uses and benefits of Ruby on Rails. It would be a very basic conversation talking to a novice audience. The name of my company is Aquent and we would need about 10 minutes of your time. Any takers? Thanks in advance! Chad Robertson Aquent --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] A little help cleaning up SQL query.
I have the SQL a for my query, its a little messy with several joins. Could someone please help/suggest how to turn this into a nice activerecord query (if possible) so I a) don't have this sql knocking around in my app breaking when I change database systems and b) use it a named scope. The query is "SELECT a.*, b.total_losses FROM (SELECT items.*, COUNT(votes.id) total_wins FROM items LEFT JOIN votes ON items.id = votes.winner_id GROUP BY items.id ) a JOIN (SELECT items.id, COUNT(votes.id) total_lossesFROM items LEFT JOIN votes ON items.id = votes.loser_id GROUP BY items.id ) b ON a.id=b.id order by a.total_wins/b.total_losses DESC;" my models look like (in case the info helps) class Item < ActiveRecord::Base has_many :winners, :class_name => "Vote" ,:foreign_key => "winner_id" has_many :losers , :class_name => "Vote" ,:foreign_key => "loser_id" end class Vote < ActiveRecord::Base belongs_to :winner, :class_name => "Item" belongs_to :loser, :class_name => "Item" end and the tables look like: mysql> desc items; ++--+--+-+-++ | Field | Type | Null | Key | Default | Extra | ++--+--+-+-++ | id | int(11) | NO | PRI | NULL| auto_increment | | name | varchar(255) | YES | | NULL|| | created_at | datetime | YES | | NULL|| | updated_at | datetime | YES | | NULL|| ++--+--+-+-++ mysql> desc votes; ++--+--+-+-++ | Field | Type | Null | Key | Default | Extra | ++--+--+-+-++ | id | int(11) | NO | PRI | NULL| auto_increment | | winner_id | int(11) | YES | | NULL|| | loser_id | int(11) | YES | | NULL|| | created_at | datetime | YES | | NULL|| | updated_at | datetime | YES | | NULL|| ++--+--+-+-++ Thanks very much for any help that can be offered. Jack --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Import of YAML files during rake?
I hate it when people think out of the box, and comes up with a perfect simple solution. Perfect, thanx for the help. regards svend On Oct 19, 2:19 am, Daniel <[EMAIL PROTECTED]> wrote: > On Oct 19, 6:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Thanx, but using fixtures_create removes the current contense of the > > database. > > This is not for devel, this is in the production enviroment. > > > regards > > svend > > I've only used the technique I mentioned to populate the table in its > totality. If you're appending data to a table, you could perhaps > create a loading table as a copy of the table you're loading to (sql: > create as select * from where 1=0; (not sure > if it works on every db) / or do it the migration way). Use the > fixture technique discussed to load it with data from your yaml file. > Then run an insert sql statement: 'insert into select * from > '. > > -- > Daniel Bush --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Does anybody out there use Litespeed?
I've heard good things about Litespeed but all the documentation I've found doesn't reflect the new 3.3 version. The older 2 and 1 versions are just so different. I've gone down the road with the old docs and it's always a dead end. I'd be happy to pay or trade code or some kind of programming favors for some help in this area. I've got some good projects under my belt. Thank you, Kathleen --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Import of YAML files during rake?
Thanx, but using fixtures_create removes the current contense of the database. This is not for devel, this is in the production enviroment. regards svend On Oct 18, 4:03 pm, Daniel <[EMAIL PROTECTED]> wrote: > On Oct 18, 11:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I want to import yaml files in to my project. > > > I have tried with fixtures, but it deletes the current data of the > > table. > > I need a way to import yaml filen in to a exsistant table. > > If you want to load yaml data into your development database, for > instance, you can add migrations to do this. > In db/migrate you should have the migration files for your tables > which you created when you generated your models. Let's suppose you > are loading to the 'users' table then you might run: > % script/generate migration LoadUserData > > Migration file might look like this: > > require 'active_record/fixtures' > > class LoadUserData < ActiveRecord::Migration > def self.up > down > directory = File.join( File.dirname(__FILE__) , 'data' ) > Fixtures.create_fixtures(directory, 'users') > end > > def self.down > User.delete_all > end > end > > where; > 'data' is db/migrate/data directory; and > 'users' is the db/migrate/data/users.yml file - which will load into > 'users' table for your 'User' model. > > Then run your migrations: > % rake db:migrate VERSION=0 > % rake db:migrate > > I think this technique is in the Rails book. > > -- > Daniel Bush --~--~-~--~~----~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Import of YAML files during rake?
I want to import yaml files in to my project. I have tried with fixtures, but it deletes the current data of the table. I need a way to import yaml filen in to a exsistant table. regards svend --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Importing / Parsing Large Excel Files ?
I'm running a Linux machine, so I think WIN2OLE and DBI libraries are not an option. On Oct 16, 10:45 pm, "Pardee, Roy" <[EMAIL PROTECTED]> wrote: > Other options include ruby's WIN32OLE and DBI libraries. For the former, > you'll have to be running on a machine w/excel installed. You'd use the > latter on a windows machine to read the spreadsheets in via ODBC. Your > connect string would be *something* like: > > connection_string = "dbi:ADO:" + > "Provider=MSDASQL;" + > "Persist Security Info=False;" + > "Extended Properties=\"dbq=c:/path/to/spreadsheet.xls\";" > > HTH, > > -Roy > > -Original Message- > From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED] > Sent: Thursday, October 16, 2008 12:02 PM > To: Ruby on Rails: Talk > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [Rails] Importing / Parsing Large Excel Files ? > > Hello, > > I'm running into a project where a client has large Excel files (60.000+ > records per file) and he needs an application to import them into a database > to use this data for useful operations (reporting, calculations .. etc). > > I know about the available libraries: > > http://raa.ruby-lang.org/project/parseexcel/http://rubyforge.org/projects/spreadsheet/http://rubyforge.org/projects/roo/ > > I've used parseexcel before but for small files. The point is that parseexcel > and spreadhsheet libraries have a reputation that they can't handle large > excel files (I don't know about 'roo'). > The guy here (http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby- > talk/223230) created some kind of a bridge between Ruby and Java to use > 'JavaExcelAPI' and it did work fine for him! > > Has anyone tried importing large excel files with ruby? Do I really need to > use a Java library through a bridge to get my job done? > Personally I prefer to hire a Java developer to do that Excel importing > module than doing a bridge and correct me if I'm wrong. > > What do you suggest guys? Is there some great ruby library to do the job that > I never heard of before? Or do you suggest some tweaks like parsing the Excel > file using 'parseexcel' like 500 records or something at a time? > > I'm kinda lost and I need your help > > Regards --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---