[Rails] Re: mysql2 adapter unable to connect to MySQL

2011-03-13 Thread Alir3z4
On Mar 12, 9:11 am, Ajay stealthu...@gmail.com wrote: Hello, When I am running the command rails server, I am getting the i have same problem on windows xp i tried many ways, even i could excute rails server but after running server, rails application doesn't work -- You received this

Re: [Rails] [RUBY] how do generate a random number w specific distribution ( which library ?)

2011-03-13 Thread Colin Law
On 12 March 2011 23:29, Conrad Taylor conra...@gmail.com wrote: On Sat, Mar 12, 2011 at 1:07 PM, Colin Law clan...@googlemail.com wrote: On 12 March 2011 20:47, Michael Pavling pavl...@gmail.com wrote: On 12 March 2011 14:23, Colin Law clan...@googlemail.com wrote: On 12 March 2011 13:42,

[Rails] Re: Problem with making Rails Web App - Netbeans IDE

2011-03-13 Thread Superpelican X.
First thank for the tutorial link. I already read a piece of it. But at 3.5 Create a database I have a problem. I have to use the command rake db:create but the terminal tells me: --- No Rakefile found (looking for:

Re: [Rails] Help Regarding Amazon S3 and Career Wave along with Rspec

2011-03-13 Thread nishant nigam
Thanks Bryan... On 12 March 2011 14:44, Bryan Crossland bacrossl...@gmail.com wrote: On Sat, Mar 12, 2011 at 11:29 AM, nishant nigam nishantnig...@gmail.comwrote: Bryan i did those changes ...i dont know how to change the main uploader code from where the file will upload.. Everything

[Rails] Re: implementation feedback appreciated

2011-03-13 Thread Erwin
Thanks Jeff, it's clear in this project , I believe the alternative strategy would be fine ... it's actually a 'sequential' list of small tasks to be performed ... and simple progress display in the UI (started - done) I'll test an 'human' (admin) firing first but I guess I can also have

[Rails] Problem with auto-generated controller and index

2011-03-13 Thread Simon Welker
Good day, people, I installed a fully working Ruby on Rails on my Debian Squeeze system today and am studying a tutorial about Ruby on Rails right now. It says that in the main folder of my app, I should type ruby script/generate controller Stories index Good, but that seems to be for older ruby

[Rails] Re: Problem with auto-generated controller and index

2011-03-13 Thread Frederick Cheung
On Mar 12, 11:25 pm, Simon Welker p0mmesg4...@googlemail.com wrote: Stories#index Find me in app/views/stories/index.html.erb Huh. That's good for the time being, because something happens in some kind and I got a functioning (at least halfway) controller. But why won't it use

[Rails] Re: Problem with auto-generated controller and index

2011-03-13 Thread Frederick Cheung
On Mar 12, 11:25 pm, Simon Welker p0mmesg4...@googlemail.com wrote: Good day, people, I installed a fully working Ruby on Rails on my Debian Squeeze system today and am studying a tutorial about Ruby on Rails right now. It says that in the main folder of my app, I should type ruby

Re: [Rails] Re: Problem with making Rails Web App - Netbeans IDE

2011-03-13 Thread Colin Law
On 13 March 2011 09:18, Superpelican X. li...@ruby-forum.com wrote: First thank for the tutorial link. I already read a piece of it. But at 3.5 Create a database I have a problem. I have to use the command rake db:create but the terminal tells me:

[Rails] undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Erwin
In the controller , I am passing an Array as a collection @objects = [item1, item2, item3, item4] in the view I wrote %table#objects = render :partial = 'object', :collection = @objects and in my partial _object.html = content_tag_for(:tr, @object) do %td= @object %td=

[Rails] [CodeFest] Participate in Manthan - Algorithm Intensive Programming Contest

2011-03-13 Thread vishal kumar rai
Hello, *CodeFest'11* http://codefest.org.in/, the annual online international coding festival of Computer Engineering Society IT-BHU, presents Manthanhttp://codefest.org.in/event.php?name=manthan- the *algorithm intensive* programming contest. The contest aims to provide a platform for

[Rails] Re: undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Frederick Cheung
On Mar 13, 11:42 am, Erwin yves_duf...@mac.com wrote: In the controller , I am passing an Array as a collection  @objects = [item1, item2, item3, item4] in the view I wrote %table#objects     = render :partial = 'object',  :collection = @objects and in my partial  _object.html =

[Rails] How should I properly secure uploaded photos?

2011-03-13 Thread Phoenix Rising
Hey guys, So I'm building a Rails 3 app and one of the major things it needs to do is let users upload photos into their own photo albums. That part in and of itself isn't a problem; where I'm a bit short on knowledge is the proper way to *secure* that information. Say we have 3 users: a, b, c.

[Rails] Re: undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Erwin
Thanks fred.. I tried with object but same error.. it seems model_name_from_record_or_class is needed when using collection I may have to change the partial rendering ... ? -- trace activemodel (3.0.4) lib/active_model/naming.rb:94:in `model_name_from_record_or_class' activemodel (3.0.4)

[Rails] Re: undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Erwin
to avoid being confused with 'object' litteral .. I modified the test code as following : #lockers %table#items = render :partial = 'item', :collection = ['foo', 'bar', 'baz'] and the _item partial = content_tag_for(:tr, item) do %td= item this time , the

[Rails] Re: Problem with auto-generated controller and index

2011-03-13 Thread Simon Welker
Thanks for your answer! I'm just a little bit disappointed now that I have to use a whole other tutorial now. scaffold will create all things for a basic database view and editing system, and it will create resources :stories in my routes.rb. Well, that's what I did manually now. I don't wanna

[Rails] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread korssane korssane
Hi peers, i am facing a problem .. trying to test a website locally ..some pages work fine but some others calling MySQl give me the following errors : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' what i have noticed : 1- no socket file in the

[Rails] Re: How should I properly secure uploaded photos?

2011-03-13 Thread Frederick Cheung
On Mar 13, 12:47 pm, Phoenix Rising polarisris...@gmail.com wrote: However, what's to stop B from grabbing the URL to the photo of A and then sending it to C over iChat or something?  C gets the image pulled up without even so much as a login. I might be going a bit overkill here, but with

[Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread Frederick Cheung
On Mar 13, 1:55 pm, korssane korssane li...@ruby-forum.com wrote: Hi peers, i am facing a problem .. trying to test a website locally ..some pages work fine but some others calling MySQl give me the following errors : If by 'calling mysql' you mean when your app tries to use mysql then

[Rails] Re: undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Frederick Cheung
On Mar 13, 1:28 pm, Erwin yves_duf...@mac.com wrote: to avoid being confused with 'object' litteral .. I modified the test code as following : #lockers         %table#items                 = render :partial = 'item',  :collection = ['foo', 'bar', 'baz'] and the _item  partial =

[Rails] Re: A file-upload suddenly seems to be nil

2011-03-13 Thread Luke
Thanks! One last question though, how would the constructor signature look for that. Apperently def initialize(file) # do stuff end doesn't 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

[Rails] Re: undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Erwin
thanks you confirm it .. I noticed it as I change my test code using the array as the collection it's fine now ... using content_tag obvious thing doesn't appears at first glance !! On 13 mar, 15:12, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 13, 1:28 pm, Erwin

[Rails] Re: A file-upload suddenly seems to be nil

2011-03-13 Thread Frederick Cheung
On Mar 13, 2:12 pm, Luke kickingje...@gmail.com wrote: Thanks! One last question though, how would the constructor signature look for that. Apperently I wouldn't override the initialiser if I were you. You need to preserve existing semantics so that (for example) active record can load your

[Rails] Re: OpenID for Rails 3 installation and implementation howto

2011-03-13 Thread Skip Levens
This is a great question - roll your own (which is a great learning exercise following along with trusted tutorials like: Railscasts - Authentication from Scratch http://blog.railsrumble.com/blog/2010/10/08/intridea-omniauth Michael Hart's Rails Tutorial:

[Rails] Error: cannot load such file

2011-03-13 Thread Dave Castellano
Hello, I am again looking for some guidance as an inexperienced programmer. I appreciate the help. I would like to run a number of ruby files from within rails. They are all different, but return information in a hash (gen_output) in a standard format that my model in rails needs to use. I am

[Rails] Re: Error: cannot load such file

2011-03-13 Thread Dave Castellano
Whoops, stupid error... require #{RAILS_ROOT}/lib/generators/parks_bielkowski_test.rb works! Thanks anyway DC -- 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

[Rails] Re: All rails commands give me a PGERROR

2011-03-13 Thread Tom Tom
Bryan Crossland wrote in post #987129: On Sat, Mar 12, 2011 at 11:34 AM, Tom Tom li...@ruby-forum.com wrote: or 'rails c --sandbox' I get a FATAL: password authentication failed for password: xxx pool: 5 timeout: 5000 Just checking the basics herecan you login into PosgreSQL using

[Rails] how to avoid strip character when store marshal object into table?

2011-03-13 Thread Zhenning Guan
I marshal a Model object and store into a table column(text type), it always strip the size into 127. so I can not return a marshal object to model object. how can I make this work? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] Re: All rails commands give me a PGERROR

2011-03-13 Thread Curtis j Schofield
Hi Bryan, Thanks for your reply. Yes I can log in as any of the three users that I have postgres and two other test users I created in trying to resolve this issue. what host do you have set in your database.yml ? -- make haste slowly \ festina lente \ - mobile

[Rails] Re: how to avoid strip character when store marshal object into table?

2011-03-13 Thread Frederick Cheung
On Mar 13, 4:20 pm, Zhenning Guan li...@ruby-forum.com wrote: I marshal a Model object and store into a table column(text type), it always strip the size into 127. so I can not return a marshal object to model object. how can I make this work? you should probably be using a blob column for

Re: [Rails] A file-upload suddenly seems to be nil

2011-03-13 Thread Curtis j Schofield
On Fri, Mar 11, 2011 at 2:33 PM, Luke kickingje...@gmail.com wrote: Hi there, I posted this issue https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68kat the carrierwave-group, but I'm beginning to think this rather is a rails-issue than a problem with carrierwave. The

Re: [Rails] Re: Error: cannot load such file

2011-03-13 Thread Curtis j Schofield
config.autoload_paths should include 'lib' to load you code - it is strange that this isn't happening. Rails.root is what we use in rails 2 On Sun, Mar 13, 2011 at 9:00 AM, Dave Castellano li...@ruby-forum.comwrote: Whoops, stupid error... require

Re: [Rails] undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Curtis j Schofield
On Sun, Mar 13, 2011 at 4:42 AM, Erwin yves_duf...@mac.com wrote: In the controller , I am passing an Array as a collection @objects = [item1, item2, item3, item4] in the view I wrote %table#objects = render :partial = 'object', :collection = @objects and in my partial _object.html

Re: [Rails] how to avoid strip character when store marshal object into table?

2011-03-13 Thread Curtis j Schofield
On Sun, Mar 13, 2011 at 9:20 AM, Zhenning Guan li...@ruby-forum.com wrote: I marshal a Model object and store into a table column(text type), it always strip the size into 127. so I can not return a marshal object to model object. how can I make this work? the text column is 2GB- you must

Re: [Rails] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread Curtis j Schofield
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' database.yml for mysql defaults to this you can change it with socket: /var/run/mysqld/mysqld.sock what i have noticed : 1- no socket file in the /var/lib/mysql/mysql.sock under /var/lib/mysql/. 2- i was

[Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread korssane korssane
Frederick Cheung wrote in post #987179: On Mar 13, 1:55pm, korssane korssane li...@ruby-forum.com wrote: Hi peers, i am facing a problem .. trying to test a website locally ..some pages work fine but some others calling MySQl give me the following errors : If by 'calling mysql' you mean

Re: [Rails] How should I properly secure uploaded photos?

2011-03-13 Thread Curtis j Schofield
On Sun, Mar 13, 2011 at 5:47 AM, Phoenix Rising polarisris...@gmail.comwrote: Hey guys, So I'm building a Rails 3 app and one of the major things it needs to do is let users upload photos into their own photo albums. That part in and of itself isn't a problem; where I'm a bit short on

[Rails] Re: Problem with making Rails Web App - Netbeans IDE

2011-03-13 Thread Superpelican X.
Thanks! It worked! A dumb mistake of me. -- 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,

[Rails] Re: How should I properly secure uploaded photos?

2011-03-13 Thread Robert Pankowecki (rupert)
It's easy to use google when you know what to look for: X-SendFile. http://www.therailsway.com/2009/2/22/file-downloads-done-right Thanks Frederick for the info Robert Pankowecki -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

Re: [Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread Frederick Cheung
On 13 Mar 2011, at 16:51, korssane korssane li...@ruby-forum.com wrote: Frederick Cheung wrote in post #987179: On Mar 13, 1:55pm, korssane korssane li...@ruby-forum.com wrote: Hi peers, i am facing a problem .. trying to test a website locally ..some pages work fine but some others

[Rails] Re: Rails 2.0.1 RC2 - activerecord-oracle-adapter not found

2011-03-13 Thread Sanjeev Me
Can anyone please provide me activerecord-oracle-adapter.gem file. I no longer find it i the rubysource website. Also im doing this install from local respository versus using gem source repository over internet as I am behind a firewall on the linux server Regards -- Posted via

Re: [Rails] Re: mysql2 adapter unable to connect to MySQL

2011-03-13 Thread Bryan Crossland
On Sat, Mar 12, 2011 at 11:52 PM, Ajay stealthu...@gmail.com wrote: Hi Bryan, I executed the following command gem uninstall mysql2 followed by the command you mentioned. I then executed the command rails server But, I am getting the same error. Please let me know, if you have any

Re: [Rails] Re: mysql2 adapter unable to connect to MySQL

2011-03-13 Thread Bryan Crossland
On Sun, Mar 13, 2011 at 3:45 AM, Alir3z4 agahia@gmail.com wrote: On Mar 12, 9:11 am, Ajay stealthu...@gmail.com wrote: Hello, When I am running the command rails server, I am getting the i have same problem on windows xp i tried many ways, even i could excute rails server but

[Rails] Re: Rails 2.0.1 RC2 - activerecord-oracle-adapter not found

2011-03-13 Thread Frederick Cheung
On Mar 13, 7:24 pm, Sanjeev Me li...@ruby-forum.com wrote: Can anyone please provide me activerecord-oracle-adapter.gem file. I no longer find it i the rubysource website. Also im doing this install from local respository versus using gem source repository over internet as I am behind a

Re: [Rails] Re: Rails 2.0.1 RC2 - activerecord-oracle-adapter not found

2011-03-13 Thread Bryan Crossland
On Sun, Mar 13, 2011 at 2:54 PM, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 13, 7:24 pm, Sanjeev Me li...@ruby-forum.com wrote: Can anyone please provide me activerecord-oracle-adapter.gem file. I no longer find it i the rubysource website. Also im doing this install from

[Rails] Re: Rails 2.0.1 RC2 - activerecord-oracle-adapter not found

2011-03-13 Thread Sanjeev Me
Frederick Cheung wrote in post #987224: On Mar 13, 7:24pm, Sanjeev Me li...@ruby-forum.com wrote: Can anyone please provide me activerecord-oracle-adapter.gem file. I no longer find it i the rubysource website. Also im doing this install from local respository versus using gem source

[Rails] Re: Re: All rails commands give me a PGERROR

2011-03-13 Thread Tom Tom
Curtis j Schofield wrote in post #987203: what host do you have set in your database.yml ? Hello Curtis, I just looked at my database.yml and I do not have a host listed. Should I list one and then make it local, ie. host:local? Thanks, fuzzy. -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Re: Rails 2.0.1 RC2 - activerecord-oracle-adapter not found

2011-03-13 Thread Sanjeev Me
Bryan Crossland wrote in post #987228: On Sun, Mar 13, 2011 at 2:54 PM, Frederick Cheung frederick.che...@gmail.com wrote: Fred Agreed. The gem you are looking for is really old and has been replaced by activerecord-oracle_enhanced-adapter gem. B.** Figured out the issue. Changed

Re: [Rails] Re: Problem with making Rails Web App - Netbeans IDE

2011-03-13 Thread Vladimir Rybas
All right. And ask questions if you stuck. That is what community for ) On Sun, Mar 13, 2011 at 8:39 PM, Superpelican X. li...@ruby-forum.com wrote: Thanks! It worked! A dumb mistake of me. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

[Rails] Info from Ruby file to Model?

2011-03-13 Thread Dave Castellano
Hi, Question... I want a model to use info from a file (parks_bielkowski_test.rb) residing in lib (standard ruby file containing a method called generated_question, that returns a hash). The way I have it set up, I get You have a nil object when you didn't expect it! if I use the symbol

[Rails] Re: how to avoid strip character when store marshal object into table?

2011-03-13 Thread Zhenning Guan
`body` text COLLATE utf8_unicode_ci, -- 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

[Rails] Can't connect to local MySQL server through socket '/tmp/mysql.sock'

2011-03-13 Thread Jason Newport
I went through the hivelogic tut http://hivelogic.com/articles/compiling-mysql-on-snow-leopard And all went well until mysql -uroot when I get the Can't connect to local MySQL server through socket '/tmp/mysql.sock' error. In Console.app I see the mysql is start and stopping with tmp/mysql.sock

[Rails] Kgio - ERROR: Failed to build gem native extension.

2011-03-13 Thread rtz gus
Hello guys, I am not able to install kgio. Kgio not working on windows? I'm using: rails 3.0.5 ruby 192 gem 1.6.2 Windows XP. C:\Ruby192\bingem install kgio Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing kgio:

[Rails] Re: Kgio - ERROR: Failed to build gem native extension.

2011-03-13 Thread rtz gus
Hello guys, i received answer mailing list kgio(in minutes!): kgio is *nix only. mailing: k...@librelist.com Close topic. []s -- 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