[Rails] Re: Routes problem in form

2011-01-09 Thread rwz
yes, it will work On Jan 10, 1:34 am, JD wrote: > On Jan 9, 6:14 pm, Frederick Cheung > wrote: > > > On Jan 9, 1:10 pm, JD wrote: > > > > Hello all, > > > > I'm relatively new to rails and have been doing ok with it but I have > > > run into an issue that I'm sure has a really easy solution tha

[Rails] Re: Looking for Examples

2011-01-09 Thread gezope
You can find on Github, and on RubyForum.org. I suggest you to install some software like in Ubuntu you can use Ruby Browser. A pro developer suggested me to read the codes of these projects because it's so pure: rack-cache http://rtomayko.github.com/rack-cache/ Bacon test framework (also on Guth

[Rails] Re: Looking for Examples

2011-01-09 Thread gezope
Spam, don't pay for it. On jan. 6, 13:33, Rajarshi wrote: > if send me some money i will give you some best book of ruby but u have to > pay 100$ for it > > > > > > > > On Thu, Jan 6, 2011 at 5:23 PM, Colin Law wrote: > > On 6 January 2011 10:18, Thuy Nhien wrote: > > > Where can I find example

[Rails] Re: How to process hacking attempts?

2011-01-09 Thread Marnen Laibow-Koser
Please quote when replying. Fritz Trapper wrote in post #973537: > And what about webmin? What about it? Best, --  Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribe

[Rails] Re: How to process hacking attempts?

2011-01-09 Thread Fritz Trapper
And what about webmin? -- 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 from this group, send email to ruby

Re: [Rails] Re: Need help in Installing Rails 3.0.3

2011-01-09 Thread Hassan Schroeder
On Sun, Jan 9, 2011 at 4:28 PM, djangst wrote: > rubygems.org is (again) the definitive source: > > http://update.gemcutter.org/2010/02/20/rubygems-org-move-complete.html Ah, crap. Guess I missed that memo :-) Never mind, then, and sorry for the noise. -- Hassan Schroeder ---

[Rails] Re: Ruby on Rails certification(s)

2011-01-09 Thread Dennis
> Is there a more specific proposed pathway. RUBY Ruby home page: http://www.ruby-lang.org/en/ and the link they list for suggested Ruby books: http://www.amazon.com/s/ref=sr_nr_n_5?ie=UTF8&rs=1000&keywords=Ruby&rh=i:aps,k:Ruby,i:stripbooks,n:1000,n:5 RAILS http://railstutorial.org/ - a free

[Rails] Re: Need help in Installing Rails 3.0.3

2011-01-09 Thread djangst
Hassan, rubygems.org is (again) the definitive source: http://update.gemcutter.org/2010/02/20/rubygems-org-move-complete.html gemcutter.org redirects to rubygems.org. On Jan 9, 7:01 pm, Hassan Schroeder wrote: > The reference to  rubygems.org is out of date. -- You received this message beca

Re: [Rails] Re: Re: Ruby on Rails for Healthcare systems

2011-01-09 Thread Walter Lee Davis
On Jan 9, 2011, at 6:46 PM, SW Engineer wrote: So @walter, what do you recommend to approach healthcare through RoR? Healthcare is much too large a target for me to say "do this" or "read that". I worked for several years at Medical Broadcasting Corporation, now Digitas Health, and worke

Re: [Rails] Need help in Installing Rails 3.0.3

2011-01-09 Thread Hassan Schroeder
On Fri, Jan 7, 2011 at 8:10 PM, Arjun Kishore wrote: > This is my gem env >  - REMOTE SOURCES: >     - http://rubygems.org/ > gem install rails > ERROR:  http://rubygems.org/ does not appear to be a repository > ERROR:  Could not find a valid gem 'rails' (>= 0) in any repository The reference t

[Rails] Re: Re: Ruby on Rails for Healthcare systems

2011-01-09 Thread SW Engineer
So @walter, what do you recommend to approach healthcare through RoR? -- 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 u

[Rails] Re: How to process hacking attempts?

2011-01-09 Thread Marnen Laibow-Koser
Fritz Trapper wrote in post #973449: > That's also not very wise, since I occasionally use phpmyadmin myself. > (In normal mode, it is stopped and a cronjob stops it automatically > every night for security.) That's not wise at all. PhpMyAdmin has known security holes, and there are better MySQL

[Rails] Need help in Installing Rails 3.0.3

2011-01-09 Thread Arjun Kishore
This is my gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i686-linux] - INSTALLATION DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136 - RUBY EXECUTABLE: /home/arjunkishore/.rvm/rubies/ruby-1.9.2-p136/bin/ruby - EXECUTABLE

Re: [Rails] Re: Ruby on Rails for Healthcare systems

2011-01-09 Thread Walter Lee Davis
On Jan 9, 2011, at 3:34 PM, gezope wrote: I think Rails is for web applications. First of all you have to decide if your application will contact to the net? It seems not this is the main functionality of your application, and noone will check his cancer on Facebook. I've built two intranet

[Rails] Re: Ruby on Rails for Healthcare systems

2011-01-09 Thread gezope
Hello, I like your question, because we was working on several tutorials and books. I can accept this advice about automating something. But it has nothing about study path, adn the question was about study path, isn't it? I think Rails is for web applications. First of all you have to decide if

[Rails] Re: Routes problem in form

2011-01-09 Thread JD
On Jan 9, 6:14 pm, Frederick Cheung wrote: > On Jan 9, 1:10 pm, JD wrote: > > > Hello all, > > > I'm relatively new to rails and have been doing ok with it but I have > > run into an issue that I'm sure has a really easy solution that I just > > can't seem to see. > > Do you want admin_carriers

[Rails] Re: Routes problem in form

2011-01-09 Thread JD
Well I've figured this one out so no worries. On Jan 9, 1:10 pm, JD wrote: > Hello all, > > I'm relatively new to rails and have been doing ok with it but I have > run into an issue that I'm sure has a really easy solution that I just > can't seem to see. > > Basically I have an app and have name

[Rails] Re: Routes problem in form

2011-01-09 Thread Frederick Cheung
On Jan 9, 1:10 pm, JD wrote: > Hello all, > > I'm relatively new to rails and have been doing ok with it but I have > run into an issue that I'm sure has a really easy solution that I just > can't seem to see. > Do you want admin_carriers_path? You can probably simplify things simply by saying

[Rails] Re: setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Frederick Cheung
On Jan 9, 4:15 pm, Daniel Amsterdam wrote: > > > > > When i google the error Please install the mysql2 adapter: `gem > install activerecord-mysql2-adapter` (no such file to load -- > active_record/connection_adapters/mysql2_adapter) people say: 'try the > mysql2 gem' i don't underst

[Rails] Routes problem in form

2011-01-09 Thread JD
Hello all, I'm relatively new to rails and have been doing ok with it but I have run into an issue that I'm sure has a really easy solution that I just can't seem to see. Basically I have an app and have namespaced and admin section to it. I'm getting the following error: No route matches {:acti

Re: [Rails] Re: Best Practice

2011-01-09 Thread Colin Law
On 9 January 2011 15:20, Alpha Blue wrote: > Hey Colin, > > I'm in the process of putting together the bitfields permission system > into a gem in case someone wants to use a different set of authorization > for their app.  When I get it done, I'll publish it and let you know the > name and git ad

[Rails] Re: setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Daniel Amsterdam
okee, i've reinstalled the gem, usr/local/mysql/bin/mysql_config is the correct path. $ gem install mysql2 -- --with-mysql-config=/usr/local/mysql/bin/ mysql_config Fetching: mysql2-0.2.6.gem (100%) Building native extensions. This could take a while... Successfully installed mys

[Rails] Re: Data in my object but not the db - help!

2011-01-09 Thread Pixelguru
Thank you so much! The tutorial I was following had attr_accessible :name, :email and I had attr_accessor :name, :email I must have stared at it 100 times and not spotted the difference. On Jan 9, 7:26 am, Frederick Cheung wrote: > On Jan 9, 4:20 am, Pixelguru wrote: > > > I'm a newbie learning

[Rails] Clarification on best practice (nested ressources and routes)

2011-01-09 Thread bourne
I want to ask for your advise on best practice in Rails3. Let take a simple model consisting of users und tasks. In the model, one user has many tasks, every task belongs to an user. I do not really "work" with the users, as this is the Devise-Table and I just link the other data to the users l

[Rails] Re: setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Frederick Cheung
On Jan 9, 2:15 pm, Daniel Amsterdam wrote: > Thx Frederick, > > You where right about the syntax error in the database.yml... think i > used tabs. So the scaffold command works now but if it try to run: $ > rake db:migrate > (in /Users/daniel/Sites/rails_mysql) > dyld: lazy symbol binding failed

[Rails] Re: Best Practice

2011-01-09 Thread Alpha Blue
Hey Colin, I'm in the process of putting together the bitfields permission system into a gem in case someone wants to use a different set of authorization for their app. When I get it done, I'll publish it and let you know the name and git address. It's much easier to see how things work when

[Rails] Re: setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Daniel Amsterdam
Thx Frederick, You where right about the syntax error in the database.yml... think i used tabs. So the scaffold command works now but if it try to run: $ rake db:migrate (in /Users/daniel/Sites/rails_mysql) dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from: /Library

[Rails] Re: setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Frederick Cheung
On Jan 9, 1:52 pm, Daniel Amsterdam wrote: > Hi everybody, > > Can someone tell me how i can set up Rails 3.0.3 working with mysql on > Snow Leopard 32bit? i've tried adding the gem 'mysql2' in my gem file > and run 'bundle install'  with the database.yml set to: Sounds like a syntax error in y

[Rails] Re: Help How to create DSL for conditional validations

2011-01-09 Thread Frederick Cheung
On Jan 9, 1:22 pm, sharad wrote: > > > Have you seen that validations take :if and :unless options ? > > I need to use coustom validation, for them I did not see any :if, > :unless option I think you can still do validate :something, :if => :something+else? > > But as I got it working I have lo

[Rails] setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Daniel Amsterdam
Hi everybody, Can someone tell me how i can set up Rails 3.0.3 working with mysql on Snow Leopard 32bit? i've tried adding the gem 'mysql2' in my gem file and run 'bundle install' with the database.yml set to: development: adapter: mysql2 database: rails_mysql_database username: roo

[Rails] Re: How to process hacking attempts?

2011-01-09 Thread Fritz Trapper
That's also not very wise, since I occasionally use phpmyadmin myself. (In normal mode, it is stopped and a cronjob stops automatically every night for security.) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Re: belongs_to and callbacks

2011-01-09 Thread Frederick Cheung
On Jan 9, 12:44 pm, ivanpoval wrote: > On Jan 8, 5:20 pm, Frederick Cheung > wrote: > > > On Jan 7, 5:03 pm, IAmNan wrote:> At the point > > > > If I stop in the debugger at > > >   self.buyer_id = self.buyer.id # Won't work without this line, seems > > > un-DRY or worse > > > I'd try stepping

[Rails] Re: Help How to create DSL for conditional validations

2011-01-09 Thread sharad
Hi > Your call to attr_accessor will create instance methods called test > and test=, but you tried to call test on the class (and so you end up > falling through to Kernel#test). No I have tested this is not the case, yes I have given wrong example but with object also it is not working, I have g

[Rails] Re: belongs_to and callbacks

2011-01-09 Thread ivanpoval
On Jan 8, 5:20 pm, Frederick Cheung wrote: > On Jan 7, 5:03 pm, IAmNan wrote:> At the point > > > If I stop in the debugger at > >   self.buyer_id = self.buyer.id # Won't work without this line, seems > > un-DRY or worse > > I'd try stepping through the assignment in self.buyer = foo. In theory

[Rails] Re: Data in my object but not the db - help!

2011-01-09 Thread Frederick Cheung
On Jan 9, 4:20 am, Pixelguru wrote: > I'm a newbie learning Rails3 and this issue has my learning stopped in > its tracks, so I'd greatly appreciate your help. I have a simple test > app with a User model and name and email fields. In the console, if I > run Don't use attr_accessor - you're rep

[Rails] Re: Updating an attribute from a POST request

2011-01-09 Thread Frederick Cheung
On Jan 9, 8:49 am, bingo bob wrote: > So what might the apps_controller update action look like to receive the > request and update the popularity count by one...I pretty much think I > can solve that myself really I just want to know my thinking it on the > right lines. > > One thing, rake rou

[Rails] wiki in rails?

2011-01-09 Thread dc
can anyone recommend a simple, maintained wiki project? i've never found anything in rails to compete with moinmoin. instiki seems to be slightly maintained again (at least some activity in 2010) but have had problems with that before. tx! -- You received this message because you are subscribed

[Rails] Data in my object but not the db - help!

2011-01-09 Thread Pixelguru
I'm a newbie learning Rails3 and this issue has my learning stopped in its tracks, so I'd greatly appreciate your help. I have a simple test app with a User model and name and email fields. In the console, if I run @test = User.create!(:name => 'Test Testman', :email => 't...@test.com') I get => #.

[Rails] Re: How to process hacking attempts?

2011-01-09 Thread rwz
it is not wise to simply ban the ips, cause this can be a simple botnet scanning. so, real users are not even aware of what's foing on. you can try to block this kind of requests on the webserver before it goes to the rails stack like this (nginx) location ~ \.php$ { deny all; }

Re: [Rails] Re: How to process hacking attempts?

2011-01-09 Thread Simon Macneall
I wouldn't bother doing that from Rails. That'd be easier to set up either at the firewall or web server level. Would use a lot less resources. Simon On Sun, 09 Jan 2011 19:35:23 +0800, Fritz Trapper wrote: I guess, I simply should send a 404. Since my server needs to be accessable from

[Rails] Re: How to process hacking attempts?

2011-01-09 Thread Fritz Trapper
I guess, I simply should send a 404. Since my server needs to be accessable from a quite small region and I'm uninterested in getting it indexed by search engines, it would be possible to reject any request, that comes from outside the region. How to programmaticaly get the origin of an IP addr

[Rails] Re: Updating an attribute from a POST request

2011-01-09 Thread bingo bob
Also, slight aside but can I simulate the action of the iOS app submitting the URL with a curl command on my mac or similar. For testing. -- 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 pos

[Rails] Re: Updating an attribute from a POST request

2011-01-09 Thread bingo bob
Update to this. Transpires that we'd like to use the apple_identifier in the URL to do the update rather than the more standard rails db App.id. So the URL submitted to do the update could look more like this. POST to http://server.com/apps?apple_identifier=6383940&incremental_update=1 Whe

[Rails] Updating an attribute from a POST request

2011-01-09 Thread bingo bob
Hi all, I'd like to update an attribute in a model via an external POST request. The external request is coming from an iOS iPhone application but I imagine this is not relevant. If I have a model App and it has the following attributes... App apple_identifier :integer popularity :integer