Re: [Rails] Re: Object doesn't support #inspect in rails 3.2.1

2012-02-25 Thread Colin Law
On 25 February 2012 05:30, Manish Nautiyal li...@ruby-forum.com wrote: what I found is this /home/manish/.rvm/gems/ruby-1.9.2-p290/gems/soap4r-1.5.8/lib/soap/property.rb:68: warning: encoding option is ignored - u Well since I see that the last update to soap4r was in 2007 I think it unlikely

Re: [Rails] Re: view rendering and javascript files

2012-02-25 Thread Dev Guy
I need some more help, I've never tested in production mode. However after creating my production db, and running the rails server is production I get a few errors 1) WeBrick claims port 3000 is already in use when it's not, not a big deal = Booting WEBrick = Rails 3.2.1 application starting in

[Rails] The Rails server(WEbrick) does not start

2012-02-25 Thread zhou qing
Hi Guys: I'm new to Rails , I just installed it today, and tried to deploy an app on the localhost, when i run the rails server i got it like the screen-shot, there's no error message, WEbrick does not start , it automatically quits, tried many times, what probable causes could there be , and how

[Rails] Query on db with mysql

2012-02-25 Thread Paul Na
Hi all, I have a host that allows ssh access but only on the main account. I was just wondering can you setup the db without using the command line e.g db:migrate generate etc as on my main account its fine but if i setup other sites i will have to pay $10/£6 to activate ssh. Thanks --

Re: [Rails] Query on db with mysql

2012-02-25 Thread Colin Law
On 25 February 2012 15:20, Paul Na li...@ruby-forum.com wrote: Hi all, I have a host that allows ssh access but only on the main account. I was just wondering can you setup the db without using the command line e.g db:migrate generate etc as on my main account its fine but if i setup other

Re: [Rails] Query on db with mysql

2012-02-25 Thread Jeffrey L. Taylor
Quoting Paul Na li...@ruby-forum.com: Hi all, I have a host that allows ssh access but only on the main account. I was just wondering can you setup the db without using the command line e.g db:migrate generate etc as on my main account its fine but if i setup other sites i will have to

[Rails] Re: Ruby on rails setup

2012-02-25 Thread Luis Lavena
On Feb 24, 11:43 am, Ryan Allen li...@ruby-forum.com wrote: I have installed the Windows kit from railsinstaller.org, and gone through the basic setup bit that presents itself automatically when installation is finished. After that, I am told to run rails new railsinstaller_demo command.  

[Rails] Re: The Rails server(WEbrick) does not start

2012-02-25 Thread Luis Lavena
On Feb 25, 12:14 pm, zhou qing li...@ruby-forum.com wrote: Hi Guys: I'm new to Rails , I just installed it today, and tried to deploy an app on the localhost, when i run the rails server i got it like the screen-shot, there's no error message, WEbrick does not start , it automatically quits,

[Rails] Re: The Rails server(WEbrick) does not start

2012-02-25 Thread Nikolay
Yes, and stop programming rails under Windows =) https://www.virtualbox.org/ with Linux is the best choice. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

[Rails] Display associated record count

2012-02-25 Thread Christopher Jones
Hi all, I have a website which has users and each user can creat multiple product records. I have the ability to show the associated records under the user profile but what I want to do now is on the user index, to display a number representing how many products that user has up for sale. So

Re: [Rails] Display associated record count

2012-02-25 Thread Philip Hallstrom
I have a website which has users and each user can creat multiple product records. I have the ability to show the associated records under the user profile but what I want to do now is on the user index, to display a number representing how many products that user has up for sale. So

[Rails] question about passing an array iterator instance to a block

2012-02-25 Thread John Merlino
I was always under assumption that the block accepts the return value of the iterator as the argument to the block, but look at this: Array.new(500) do | i | puts i end I expect i to be an array instance with 500 indexes all will nil values. However, what it returns is indeed an array

[Rails] Re: New to Ruby on Rails - Assigning variation (like size or color) to products

2012-02-25 Thread Eric L.
Top 3 book for Rails/Ruby Development 1. The Ruby Programming Language by David Flanagan Yukihiro Matsumoto or 1. Programming Ruby 1.9 (3rd edition): The Pragmatic Programmers' Guide by by Dave Thomas, with Chad

Re: [Rails] question about passing an array iterator instance to a block

2012-02-25 Thread Valery Kvon
On 25.02.2012, at 23:41, John Merlino wrote: I was always under assumption that the block accepts the return value of the iterator as the argument to the block, but look at this: Array.new(500) do | i | puts i end I expect i to be an array instance with 500 indexes all will nil

[Rails] Re: question about passing an array iterator instance to a block

2012-02-25 Thread John Merlino
thanks for response but that was just an example and not really what my question was about. Perhaps this is a better example: Array.new(10) do |id| ? '#{(id + 1).to_s.rjust(2,0)}' end = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10'] Why is id not the array instance. It

Re: [Rails] question about passing an array iterator instance to a block

2012-02-25 Thread Valery Kvon
On 26.02.2012, at 0:07, John Merlino wrote: thanks for response but that was just an example and not really what my question was about. Perhaps this is a better example: Array.new(10) do |id| ? '#{(id + 1).to_s.rjust(2,0)}' end = ['01', '02', '03', '04', '05', '06', '07', '08',

[Rails] Re: question about passing an array iterator instance to a block

2012-02-25 Thread John Merlino
You know what your completely right. The block only will take what the yield method returns to it. So apparently when instantiating an array with that first argument setting a size limit for array, the constructor contains a yield method which yields each iteration of that size limit. And then the

Re: [Rails] Re: view rendering and javascript files

2012-02-25 Thread Dev Guy
Found the answer in the RailsGuides in the asset pipeline section, this is a development mode thingy as I assumed. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

[Rails] Newby Question about Methods

2012-02-25 Thread Keira S.
Hi, i´m new to Ruby and have some problems when i´m creating new methods for my application. I read different tutorials and understand the structure (okay, i thought i did ;-)). Now i build my own little application where i have 4 models: the user, book, category and booking. The booking model

[Rails] Re: The Rails server(WEbrick) does not start

2012-02-25 Thread zhou qing
Thank you for your reply, the 'space' isn't the cause of it, run on the root folder of the disk, same.check the new screen-shot. Attachments: http://www.ruby-forum.com/attachment/7104/prob_rails2.jpg -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: image transfer from phone gap to rails

2012-02-25 Thread ta_ni_
Has been resolved. I forget to add setting of ExternalHosts. to add new item (value = *) to PhoneGap.plist - ExternalHosts On 2月24日, 午前9:21, ta_ni_ kazuyat7...@gmail.com wrote: Hi all Any advice in how to transfer image data  from phone gap  to rails? I try to write small code,but that can

[Rails] can't get rails gem

2012-02-25 Thread Joel
Hi, I'm brand new to rails, and I have a mac 10.7 that I bought today. I try the following: joelrwesley$ sudo gem install rails Password: Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension.

[Rails] Seems I'm missing some kind of library?

2012-02-25 Thread C_Programmer_new_to_ruby
When I run rake db:create --trace in my rails directory, or if I attempt a bundle install I get the same error around missing rubygems/format. I am new, but I am really hoping there is some way that I can discover which package this rubygems/format belongs in. I did a locate on format | grep gem

[Rails] problem with libyaml

2012-02-25 Thread Pouya
Hi all, I am a total newbie in both ruby and rails development. I have problem with libyaml (apparently). I had rvm installed and did: rvm install 1.9.3. Installation of ruby was completed successfully however it complained about libyaml (below): Fetching yaml-0.1.4.tar.gz to

[Rails] Re: Newby Question about Methods

2012-02-25 Thread Frederick Cheung
I have a list with bookings from a user, where i want show which books he had lend from which category and show the difference between the end and the start-date (not in words, mayby in days or hours). Around this list i have an each do loop. Now i have found different examples to create a

[Rails] Served asset /application.css - 304 Not Modified

2012-02-25 Thread ta_ni_
Hi I am thinking to hide warning that is ”Served asset /application.css - 304 Not Modified”. How can I fix something if I change the settings? I've run that is less than server: rails new myapp cd myapp rake db:migrate rails s client: http://localhost:3000/books warning: Started GET

[Rails] Re: can't get rails gem

2012-02-25 Thread Frederick Cheung
On Feb 26, 5:21 am, Joel joel.wes...@gmail.com wrote: Hi, I'm brand new to rails, and I have a mac 10.7 that I bought today.  I try the following: joelrwesley$ sudo gem install rails Password: Building native extensions.  This could take a while... ERROR:  Error installing rails:        

[Rails] Re: Seems I'm missing some kind of library?

2012-02-25 Thread Frederick Cheung
On Feb 25, 3:36 pm, C_Programmer_new_to_ruby ahdumbled...@gmail.com wrote: When I run rake db:create --trace in my rails directory, or if I attempt a bundle install I get the same error around missing rubygems/format.  I am new, but I am really hoping there is some way that I can discover