Re: [Rails] configuration issue (Uninitialized constant Aftimagr (NameError) )

2010-12-08 Thread Colin Law
On 8 December 2010 07:04, Akeel Qureshi li...@ruby-forum.com wrote: Hello All I am getting this error, any one resolved this. it's urgent ruby script/server --debugger = Booting WEBrick... = Debugger enabled config.gem: Unpacked gem rspec-rails-1.1.11 in vendor/gems has no

Re: [Rails] rake aborted! nosuch file to load -- java

2010-12-08 Thread rajeevsharma86
run with -- trace and post here On Wed, Dec 8, 2010 at 1:05 PM, Vamsi Krishna li...@ruby-forum.com wrote: Hi, When i was migrating the db i got the following error. rake db:migrate rake aborted! no such file to load -- java Can you please let me know what to do to solve this. --

[Rails] Re: PayPal notifications - Rails 3.

2010-12-08 Thread Anders_P
Thanks Colin! You found the root of my problem, the invoice/id was wrong. And thanks for the tips regarding Ruby-debug. Still has a lot to learn. :D // Anders On 7 Dec, 22:35, Colin Law clan...@googlemail.com wrote: On 7 December 2010 21:03, Anders_P and...@andersplanting.se wrote:

[Rails] Re: Render partial generate unwanted spaces

2010-12-08 Thread Julien
On 7 déc, 21:54, bravehoptoad bravehopt...@gmail.com wrote: Just checking: UTF-8 without BOM: no problems UTF-8 with BOM: problems Right? Correct. I've never seen this problem on *nix.  I wonder if it's an artifact of Windows' text handling routines. Yes, I strongly suspect,

[Rails] Re: rake aborted! nosuch file to load -- java

2010-12-08 Thread Vamsi Krishna
Kannav R. wrote in post #967134: run with -- trace and post here On Wed, Dec 8, 2010 at 1:05 PM, Vamsi Krishna li...@ruby-forum.com wrote: -- http://groups.google.com/group/rubyonrails-talk?hl=en. -- Thanks: Rajeev sharma +919013155133 here the trace:

Re: [Rails] Re: rake aborted! nosuch file to load -- java

2010-12-08 Thread rajeevsharma86
paste here yours D:/vamsi/config/environment.rb:22 On Wed, Dec 8, 2010 at 2:12 PM, Vamsi Krishna li...@ruby-forum.com wrote: Kannav R. wrote in post #967134: run with -- trace and post here On Wed, Dec 8, 2010 at 1:05 PM, Vamsi Krishna li...@ruby-forum.com wrote: --

[Rails] Re: Re: rake aborted! nosuch file to load -- java

2010-12-08 Thread Vamsi Krishna
Kannav R. wrote in post #967147: paste here yours D:/vamsi/config/environment.rb:22 On Wed, Dec 8, 2010 at 2:12 PM, Vamsi Krishna li...@ruby-forum.com wrote: D:/vamsi/vendor/rai C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in

Re: [Rails] Re: Re: rake aborted! nosuch file to load -- java

2010-12-08 Thread rajeevsharma86
how do i know which is line 22 On Wed, Dec 8, 2010 at 2:58 PM, Vamsi Krishna li...@ruby-forum.com wrote: Kannav R. wrote in post #967147: paste here yours D:/vamsi/config/environment.rb:22 On Wed, Dec 8, 2010 at 2:12 PM, Vamsi Krishna li...@ruby-forum.com wrote:

[Rails] Integration tests for an existing Rails application.

2010-12-08 Thread pankaj
For an existing rails application, which is better? building integration tests through cucumber or through selenium Regards, Pankaj -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: rake aborted! nosuch file to load -- java

2010-12-08 Thread Vamsi Krishna
this is the line no: 22 Rails::Initializer.run do |config| -- 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-t...@googlegroups.com. To unsubscribe

[Rails] managing a lengthy process with periodic page updates

2010-12-08 Thread Fearless Fool
In my application, there's a point where a user will initiate an action that will take a LONG time to complete. (Among other things, it needs to dynamically gather data from a number of external sources.) Rather than simply leaving the user hanging while waiting for a response, I'd like to give

[Rails] Dot Printer and Jasperreports dont work

2010-12-08 Thread Eduardo Guadalupe
Hello.. Im new in this forum.. and I was asking me if somebody can help me in a problem.. I implemented jasperreports in rails.. its exccelent because the reports open in a pdf and I can print it.. but the problem is that I cant print the pdf report in a dot printer (Epson LX-300) the document is

Re: [Rails] Dot Printer and Jasperreports dont work

2010-12-08 Thread Peter Hickman
So this query is about how to print PDFs on an Epson LX-300? Is this a problem for all PDFs or just those created by jasperreports? If it is a problem with all PDFs then this is not a Ruby/Rails problem and you should either talk to Epson about drivers and the like or, as I suspect, resign

[Rails] Re: Dot Printer and Jasperreports dont work

2010-12-08 Thread Eduardo Guadalupe
hello.. well I was asking is there a way to see the jasperreport in RAILS aplication in another program not pdf like jasperviewer.. Thanks Lumbar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Error while installing the mysql gem

2010-12-08 Thread Priya Buvan
Hi All, When i'm provide gem install mysql command, i got the following error. Please support me in getting out this error. Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking

[Rails] NoMethodError: `bytesize' for 200:Fixnum (with Rails-3.0.3)

2010-12-08 Thread Kaoru Kobo
Thanks to Rails developer team. I tried Rails3 along this guide: Ruby on Rails Guides: Getting Started with Rails http://edgeguides.rubyonrails.org/getting_started.html and I met the problem described as following. ...Any ideas? === Environment: === $ ruby -v ruby 1.8.7

[Rails] Re: managing a lengthy process with periodic page updates

2010-12-08 Thread Frederick Cheung
On Dec 8, 11:35 am, Fearless Fool li...@ruby-forum.com wrote: My first instinct is to spawn a thread to run the process, and use a carefully managed interface to provide updates.  But I suspect that may not work the way I expect -- it really depends on the lifecycle of ActionPack

Re: [Rails] Re: Dot Printer and Jasperreports dont work

2010-12-08 Thread Peter Hickman
No, what you asked was the problem is that I cant print the pdf report in a dot printer (Epson LX-300) the document is ugly and I cant read it because its distorsioned -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

Re: [Rails] Error while installing the mysql gem

2010-12-08 Thread Colin Law
On 8 December 2010 12:32, Priya Buvan li...@ruby-forum.com wrote: Hi All, When i'm provide gem install mysql command, i got the following error. Please support me in getting out this error. Building native extensions.  This could take a while... ERROR:  Error installing mysql:  ERROR:

[Rails] Re: Error while installing the mysql gem

2010-12-08 Thread Priya Buvan
Sorry Colin.. I'm using Ubuntu 10.10 and rails 2.3.5 Colin Law wrote in post #967171: On 8 December 2010 12:32, Priya Buvan li...@ruby-forum.com wrote: Hi All, When i'm provide gem install mysql command, i got the following error. Please support me in getting out this error. Building

Re: [Rails] Re: Error while installing the mysql gem

2010-12-08 Thread Colin Law
On 8 December 2010 13:28, Priya Buvan li...@ruby-forum.com wrote: Please don't top post, it makes it difficult to follow the thread. Insert your reply into the previous post. Thanks. Sorry Colin.. I'm using Ubuntu 10.10 and rails 2.3.5 In that case I believe you should be using sudo for

[Rails] rails 3 with oracle

2010-12-08 Thread bsanneh
Hi all can you please guide me on how to setup a new rails3 application with oracle as the database. i have tried so many times and havin errors.. I used this command rails new app name --database oracle it does create the application fine but in the database.yml file i have something like this

[Rails] Re: How to use a partial in multipart/alternative emails (HTML and plain text)

2010-12-08 Thread Tom Ha
No ideas at all? (Am I the only one with this problem?) -- 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-t...@googlegroups.com. To unsubscribe

[Rails] how to get access token facebook

2010-12-08 Thread ashu
i am using facebooker and i have session keys need to use Graph API that requires access_token Please suggest me how to get that or how to exchange session keys into access_token of all users Thanks in advance -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Integration tests for an existing Rails application.

2010-12-08 Thread Marnen Laibow-Koser
pankaj wrote in post #967152: For an existing rails application, which is better? building integration tests through cucumber or through selenium They're not mutually exclusive. Use Cucumber, and if you have extensive JavaScript to test drive Selenium or Celerity through Cucumber. Regards,

Re: [Rails] Re: managing a lengthy process with periodic page updates

2010-12-08 Thread Peter De Berdt
On 08 Dec 2010, at 13:37, Frederick Cheung wrote: On Dec 8, 11:35 am, Fearless Fool li...@ruby-forum.com wrote: My first instinct is to spawn a thread to run the process, and use a carefully managed interface to provide updates. But I suspect that may not work the way I expect -- it

Re: [Rails] Re: Can't install Rails 3.0

2010-12-08 Thread Walter Lee Davis
On Dec 8, 2010, at 2:27 AM, Misha Ognev wrote: Did you have 1.9.1 once upon a time? Yes, I have. Have you installed any gems since upgrading to 1.9.2? Yes, wxruby ad wxsugar. But I can delete them and reinstalling later, if it need. Walter, what I must to do? And can you copy and paste

[Rails] Re: Error: uninitialized constant MysqlCompat::MysqlRes

2010-12-08 Thread John H.
Thanks Kyle, worked awesomely on my macosx machine. Kyle Fox wrote in post #846791: To fix this, specify ARCHFLAGS when you install the 'mysql' gem: sudo env ARCHFLAGS=-arch x86_64 gem install mysql -- --with-mysql- config=/usr/local/mysql/bin/mysql_config On Aug 27, 12:07 pm, Caleb Cullen

Re: [Rails] Re: Re: [OT more Ruby maybe] Nested categories, nesting has_many :through a HABTM relationship

2010-12-08 Thread Rick R
On Wed, Dec 8, 2010 at 12:44 AM, Marnen Laibow-Koser li...@ruby-forum.comwrote: It's more idiomatic Ruby. You'd write x == 2, not x.eql?(2), and your matchers should follow the same practice for better readability. I actually prefer x.size == 3 over x.size.should eql(3), I was just trying

[Rails] Re: Caching for layout variables

2010-12-08 Thread Tim Shaffer
On Dec 7, 4:12 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Look up the RDoc for ActiveSupport::Cache::Store.  You'll need to use the interface described there (at least in Rails 2). Thanks. Turned out to be way simple... @menu_items = Rails.cache.fetch(:menu_items_all) { MenuItem.all }

Re: [Rails] Re: Nested categories, nesting has_many :through a HABTM relationship

2010-12-08 Thread Rick R
On Wed, Dec 8, 2010 at 2:39 AM, Roger chiefi...@gmail.com wrote: def feature_types results = Hash.new prev = nil @features.each do |f| if (f.feature_type.name != prev) results[f.feature_type.name] = [] end results[f.feature_type.name] f prev =

[Rails] Re: Caching for layout variables

2010-12-08 Thread Frederick Cheung
On Dec 8, 3:39 pm, Tim Shaffer timshaf...@me.com wrote: On Dec 7, 4:12 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Look up the RDoc for ActiveSupport::Cache::Store.  You'll need to use the interface described there (at least in Rails 2). Thanks. Turned out to be way simple...

[Rails] jruby on rails scheduling options

2010-12-08 Thread Phil Ostler
Hi, I'm using JRuby 1.5.6 on Rails to build myself an application that will periodically go away and retrieve any RSS podcasts that I have subscribed too. I've chosen JRuby primarily because I'm familiar with Java, wish to utilise the Rails framework and most importantly I'm able to perform the

[Rails] Help on install act_as_ferret on windows XP

2010-12-08 Thread Pedro
Hi There! Im trying to install act_as ferret on win xp, with this environment: winXP ruby : 1.8.7 rails: 2.3.8 gem list: abstract (1.0.0) actionmailer (3.0.1, 2.3.8, 1.3.3) actionpack (3.0.1, 2.3.8, 2.3.2, 1.13.6, 1.13.3) actionwebservice (1.2.6, 1.2.3) activemodel (3.0.1) activerecord (3.0.1,

[Rails] ActiveRecord serialize field and SerializationTypeMismatch

2010-12-08 Thread Kai Schlamp
Hello. In one of my ActiveRecord models I specified a a serialize field: serialize :settings MyModelSettings If I understand the documentation correctly this restricts settings to the class MyModelSettings. The problem is that this is so restrictive that I even don't know how to initialize the

[Rails] Re: Caching for layout variables

2010-12-08 Thread Marnen Laibow-Koser
Frederick Cheung wrote in post #967208: On Dec 8, 3:39pm, Tim Shaffer timshaf...@me.com wrote: On Dec 7, 4:12pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Look up the RDoc for ActiveSupport::Cache::Store. You'll need to use the interface described there (at least in Rails 2).

[Rails] Re: jruby on rails scheduling options

2010-12-08 Thread Marnen Laibow-Koser
Phil Ostler wrote in post #967209: Hi, I'm using JRuby 1.5.6 on Rails to build myself an application that will periodically go away and retrieve any RSS podcasts that I have subscribed too. I've chosen JRuby primarily because I'm familiar with Java, wish to utilise the Rails framework and

Re: [Rails] Re: jruby on rails scheduling options

2010-12-08 Thread Peter Bell
On Dec 8, 2010, at 12:55 PM, Marnen Laibow-Koser wrote: I'm going to suggest that you experiment with switching away from JRuby. I think you have chosen it for what appear to be the wrong reasons: if you are using Ruby correctly, you generally won't need Java for heavy lifting. I don't

Re: [Rails] how to reload everything in script/console

2010-12-08 Thread FrankStein
rubynuby wrote: in the console, I know I can reload a file with load 'foo.rb'. Is there a way to reload everything, as if I typed quit and script/ console, but without losing the history (I type slow). I tried reload! but that doesn't do it. thanks

[Rails] Rails 3 too slow?

2010-12-08 Thread Victor Cisneiros
I'm using Ruby 1.9.2, Rails 3.0.3, Passenger 3.0.0 and MySQL 5.1 rails new library cd library rails generate scaffold Book name:string rake db:migrate RAILS_ENV=production rails console production 200.times { |i| Book.create(:name = Book #{i}) } ab -n 100 -c 10

[Rails] Re: Caching for layout variables

2010-12-08 Thread Tim Shaffer
On Dec 8, 11:08 am, Frederick Cheung frederick.che...@gmail.com wrote: On Dec 8, 3:39 pm, Tim Shaffer timshaf...@me.com wrote: On Dec 7, 4:12 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Look up the RDoc for ActiveSupport::Cache::Store.  You'll need to use the interface described

Re: [Rails] Rails 3 too slow?

2010-12-08 Thread Conrad Taylor
On Wed, Dec 8, 2010 at 10:26 AM, Victor Cisneiros li...@ruby-forum.comwrote: I'm using Ruby 1.9.2, Rails 3.0.3, Passenger 3.0.0 and MySQL 5.1 rails new library cd library rails generate scaffold Book name:string rake db:migrate RAILS_ENV=production rails console production 200.times {

[Rails] Re: jruby on rails scheduling options

2010-12-08 Thread Phil Ostler
The heavy lifting tasks I refer too are heavy data processing or IO heavy tasks that have performed poorly in early prototypes using a Ruby only approach. For example, once a RSS feed is downloaded and parsed, it's elements (usually mp3's of 100mb+ each) are then to be downloaded and stored away

[Rails] Re: Rails 3 too slow?

2010-12-08 Thread Victor Cisneiros
Conrad Taylor wrote in post #967247: On Wed, Dec 8, 2010 at 10:26 AM, Victor Cisneiros li...@ruby-forum.comwrote: 359 ms for a 2.9 KB page What is wrong? I was expecting something like 50-100 requests/sec I remember trying this before in rails 2.3.8 and it was much faster Hi, you need

[Rails] Re: Re: beginning web development with ror, how?

2010-12-08 Thread Ar Chron
Umarzuki Bin Mochlis Moktar wrote in post #967122: thanks Then again, there's always this: Why's Poignant Guide to Ruby... http://mislav.uniqpath.com/poignant-guide/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Rails 3 Action Mailer issue

2010-12-08 Thread Vanita Sa
Hi, I have the same SMTP settings. I'm just sending emails to myself to test out. I do the see the sent mail in the console. But I don't receive any email. The SMTP settings was working with Rails 2.3.8. Any ideas? Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this

Re: [Rails] Re: Nested categories, nesting has_many :through a HABTM relationship

2010-12-08 Thread Rick R
On Wed, Dec 8, 2010 at 2:39 AM, Roger chiefi...@gmail.com wrote: All of that being said, I solved the problem (possibly improperly) by doing this: 1) Adding a scope definition to feature_types called with_car, so, FeatureType.with_car would find me the feature types that, by process, can

[Rails] Re: jruby on rails scheduling options

2010-12-08 Thread Phil Ostler
Further to note, I run on Windows so suffer from a lack of cron. In defence of JRuby's support for gems, I have never, up to now, come across an instance where a gem hasn't worked in JRuby. I'm aware I don't use JRuby as much as some guys out there, but I'd have expected to have hit problems

[Rails] Re: jruby on rails scheduling options

2010-12-08 Thread Marnen Laibow-Koser
Please quote when replying. Phil Ostler wrote in post #967248: The heavy lifting tasks I refer too are heavy data processing or IO heavy tasks that have performed poorly in early prototypes using a Ruby only approach. For example, once a RSS feed is downloaded and parsed, it's elements

[Rails] Re: jruby on rails scheduling options

2010-12-08 Thread Marnen Laibow-Koser
Phil Ostler wrote in post #967256: Further to note, I run on Windows so suffer from a lack of cron. Rails doesn't work well on Windows, so you're making your life harder here too. In defence of JRuby's support for gems, I have never, up to now, come across an instance where a gem hasn't

[Rails] Re: Re: Nested categories, nesting has_many :through a HABTM relationship

2010-12-08 Thread Marnen Laibow-Koser
Rick R wrote in post #967255: On Wed, Dec 8, 2010 at 2:39 AM, Roger chiefi...@gmail.com wrote: from the already-established self.features array by using a select to end I still think it's cleaner to just get all features ordered by feature_type_id and then just do your switching in the

[Rails] Re: Re: beginning web development with ror, how?

2010-12-08 Thread Marnen Laibow-Koser
Ar Chron wrote in post #967252: Umarzuki Bin Mochlis Moktar wrote in post #967122: thanks Then again, there's always this: Why's Poignant Guide to Ruby... http://mislav.uniqpath.com/poignant-guide/ Fun read, but IMHO not a good learning book for beginners. Best, -- Marnen Laibow-Koser

[Rails] How to use unicorn server on Rails 3

2010-12-08 Thread Colin Law
I am using Rails 3.0.3, Ruby 1.9.2 with rvm on Ubunutu 10.04. I generated a new app by rails new testunicorn. By default the Webrick server runs ok. In order to try Unicorn I uncommented gem 'unicorn' in Gemfile and did bundle install. rails server still runs webrick and doing rails server

[Rails] Re: RAILS3: method = :delete STOPPED working! ( CONFIRMATION is ignored)

2010-12-08 Thread Marnen Laibow-Koser
Colin Law wrote in post #966279: On 5 December 2010 04:01, Reza reza@gmail.com wrote: Hi there, I've been working on an app with Rails3/Win32/MySQL. It has been working fine, until I don't exactly when the :destroy method soes not work and on the log I see the GET is sent to the

Re: [Rails] How to use unicorn server on Rails 3

2010-12-08 Thread Hassan Schroeder
On Wed, Dec 8, 2010 at 1:25 PM, Colin Law clan...@googlemail.com wrote: I am using Rails 3.0.3, Ruby 1.9.2 with rvm on Ubunutu 10.04.  I generated a new app by rails new testunicorn.  By default the Webrick server runs ok.  In order to try Unicorn I uncommented gem 'unicorn' in Gemfile and did

[Rails] Rails 3. deployment with Bundler

2010-12-08 Thread James Byrne
I have a 32 bit server that I wish to deploy an application to. I have the deploy branch checked out on an i86_64 bit machine. What is the proper way to deploy the application and its gems from the i86_64 machine? Do I configure a deployment specific Gemfile, send only that, and then run bundle

[Rails] JavaScript include order

2010-12-08 Thread Gustavo de Sá Carvalho Honorato
Hi, how can I specify the order of included JavaScript files using javascript_include_tag :all? Thanks, Gustavo -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To

[Rails] Re: JavaScript include order

2010-12-08 Thread Marnen Laibow-Koser
Gustavo de Sá Carvalho Honorato gustavohonorato wrote in post #967278: Hi, how can I specify the order of included JavaScript files using javascript_include_tag :all? I don't think you can. It's normally bad practice to use :all anyway. Just include the JS you need on that particular

[Rails] ActiveRecord syntax for multiple joins on same table?

2010-12-08 Thread Fearless Fool
In my ongoing quest to wean myself of find_by_sql(), I now need to know how to do multiple joins into a single table using the spiffy new ActiveRecord query syntax. As an example, imagine that an Edge is defined by its two vertices: create_table vertices, :force = true do |t| t.floatx

[Rails] Re: Rails 3 too slow?

2010-12-08 Thread Victor Cisneiros
replacing this td%= link_to 'Show', book %/td td%= link_to 'Edit', edit_book_path(book) %/td td%= link_to 'Destroy', book, :confirm = 'Are you sure?', :method = :delete %/td with this tda href=/books/%= book.id %Show/a/td tda href=/books/%= book.id %/editEditar/a/td tda href=/books/%= book.id %

[Rails] Re: Best way to do testing / load seed data?

2010-12-08 Thread daze
Hey thanks! Just like to say that factory_girl_rails (factory_girl for Rails 3) works excellently. On Dec 6, 5:24 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: daze wrote in post #966672: What is the preferred way to have testing data - fixtures, or something like factory_girl

[Rails] Re: Can't use rails_upgrade plugin on Windows due to missing fork() function

2010-12-08 Thread daze
In the end, I just made a new rails 3 application and did a lot of code transfer (copy/paste). It actually didn't take that long, and things are great with the app in Rails 3. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: ActiveRecord syntax for multiple joins on same table?

2010-12-08 Thread Fearless Fool
[I just *gotta* stop answering my own posts! :)] Okay -- if you set up your associations properly, then the ActiveRecord query syntax does the right thing. With one big flaw. In the above Edge / Vertex example, declare associations as follows: class Edge ActiveRecord::Base belongs_to

[Rails] Re: Re: Error while installing the mysql gem

2010-12-08 Thread Priya Buvan
I have installed a dependent library(libmysqlclient-dev), after that mysql gem is installed successfully. -- 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

[Rails] Merging multiple hashes as single hash

2010-12-08 Thread Priya Buvan
Hi All, I'm having unknown number of hashes. How to merge all those hashes into single hash? Thanks, Buvana -- 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

[Rails] Re: Merging multiple hashes as single hash

2010-12-08 Thread Marnen Laibow-Koser
Priya Buvan wrote in post #967340: Hi All, I'm having unknown number of hashes. How to merge all those hashes into single hash? Think about the semantics here! What happens if the same key appears in all the hashes? Which value takes priority? You can use inject to merge the hashes, but

Re: [Rails] Merging multiple hashes as single hash

2010-12-08 Thread Michael Pavling
On 9 December 2010 06:09, Priya Buvan li...@ruby-forum.com wrote: I'm having unknown number of hashes. How to merge all those hashes into single hash? use merge... http://ruby-doc.org/core/classes/Hash.html#M002880 When you say you have unknown number, are they in an array? if so, iterate it

[Rails] Re: Merging multiple hashes as single hash

2010-12-08 Thread Priya Buvan
@Michael: yes its in array.. @Marnen: If there is more than one key with same name, obviously it'll be override. This is fine. Anyway i'm trying to fetch the result separately. I'll reply with latest updated soon. Thanks, Buvana -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Rails 3. deployment with Bundler

2010-12-08 Thread flyerhzm
Here is a post you may interest http://rails-bestpractices.com/posts/51-dry-bundler-in-capistrano -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from