[Rails] New i18n release (0.8.0.beta1)

2016-11-20 Thread Ryan Bigg
Hello all, I've been helping Sven Fuchs maintain the i18n gem and I'm pleased to let you know that I'm prepping a new release of this gem (0.8.0). This new release will affect every Rails version since Rails 3.2, so I want to make sure this release is bullet-proof! Included in this release

[Rails] Re: Good rails 3.1 book

2011-09-08 Thread Ryan Bigg
Hello, I am the main author of Rails 3 in Action. During June, I worked hard on upgrading this book to support the 3.1 release. Our work then was pretty decent and relevant to Rails 3.1 final, as it turns out. Since then, the book has been undergoing the long, drawn-out production phase that

[Rails] Rails Documentation Drive

2010-11-26 Thread Ryan Bigg
Hey guys, I'm taking the next month (December) off work to work full- time on the Rails documentation. I've set up a pledgie which you can donate to here: http://pledgie.com/campaigns/14034 My first task will be going through the Configuring Rails Application guide and updating that to be Rails 3

[Rails] Re: Re: Rails 3 RC

2010-07-25 Thread Ryan Bigg
Greg Donald wrote: Cry babies who think the Rails core or community owes them something can go cry somewhere else. Must you be so arrogant? What gives you the right to dictate where people should go? Please act like a respectable member. -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Re: Re: Rails 3 RC

2010-07-25 Thread Ryan Bigg
Rimantas Liubertas wrote: Must you be so arrogant? What gives you the right to dictate where people should go? Please act like a respectable member. Care to elaborate why do you have a right to tell others how to act? I was not telling anybody else how to act. I was simply asking

[Rails] Re: Re: Rails 3 RC

2010-07-25 Thread Ryan Bigg
Rimantas Liubertas wrote: Telling people to leave the community is one sure fire way for them to do that, and I'm sure deep down you don't want that to happen because without people we are without community. Not everyone is good for community. I won't be sad a bit if some leave. So (and I

[Rails] Re: Rails 3 RC

2010-07-25 Thread Ryan Bigg
Michael Schuerig wrote: On Monday 26 July 2010, Ryan Bigg wrote: As for the people who aren't good for this community, I so far see two of them in this entire thread and let me tell you: they aren't the people who are whining that Rails 3 isn't out yet. They're on the other side

[Rails] Re: Rails 3 RC

2010-07-24 Thread Ryan Bigg
Guys. The name-calling, comparing of e-penises and general abusiveness stops now. You are mature members of the Ruby community and I would expect you to act that way. What ever happened to MINASWAN (Matz Is Nice Always So We Are Nice)? I'd expect this kind of behaviour from a PHP mailing

[Rails] Re: Rails 3 RC

2010-07-24 Thread Ryan Bigg
Greg, You have been around as long or longer than I have. I would have thought by now you would have risen above the name-calling and generally arrogant attitude. To me, you are a fellow senior member of the community and it greatly saddens me to see somebody of your level acting in such an

[Rails] Re: Ruby and MySQL

2009-10-27 Thread Ryan Bigg
I find it awesome that nobody's recognised a troll. Wow, great work fellas! --~--~-~--~~~---~--~~ 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] Integrating one app into another

2009-07-22 Thread Ryan Bigg
Hi, my name's Ryan Bigg, you may know me as Radar or that guy who created rBoard. Today I wish to ask: how do you integrate one app into another? Lots of people have come to me and asked the question of rBoard but I can't really help them since I can't find an easy way to do it. Ideas

[Rails] Re: noob validation question for time_zone

2009-06-12 Thread Ryan Bigg
You can do validates_presence_of :time_zone in the relevant model to ensure that the field is not left blank. --~--~-~--~~~---~--~~ 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: problem with date object.

2009-06-12 Thread Ryan Bigg
Just FYI: It is illegal to store credit card information from your users (without proper clearance from certain authorities). Check out the PCI standard. I recommend using a payment gateway like PaymentExpress. --~--~-~--~~~---~--~~ You received this message

[Rails] Re: dispatch.fcgi is presented instead of the action

2009-06-12 Thread Ryan Bigg
I really recommend that you look into something like passenger: http://modrails.com for running your Rails applications, rather than mod_fcgi or the like. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Hook Exist in Rails for System-Wide Exception Logging?

2009-02-15 Thread Ryan Bigg
http://getexceptional.com is pretty good for that kind of thing too. On 16/02/2009, at 3:14 PM, alberto wrote: Rails Exception Notifier will give you what you need. If you want, you can hook into it a write to the DB, but you will find that the email notification is plenty.

[Rails] Re: Error when execute script/generate rspec

2009-02-12 Thread Ryan Bigg
Have you frozen rails to vendor/rails? On 13/02/2009, at 2:48 PM, zerogy wrote: I want to use rspec in my new project, but when install rspec, error occured. Could anyone help me? Thanks in advance. - cd vendor/plugins git clone

[Rails] Re: script/server -- responding to multiple request simultaneously?

2009-02-06 Thread Ryan Bigg
You could use passenger for this (an apache module), http:// modrails.com. - Ryan Bigg Mocra - Premier iPhone and Ruby on Rails Consultants w - http://mocra.com e - ra...@mocra.com p - +61 432 937 289 or +61 7 3102 3237 skype - radarlistener On 07/02/2009, at 12:09 PM, Jacob Refstrup

[Rails] Re: detecting rake db:migrate ?

2009-02-05 Thread Ryan Bigg
There is a model class method like table_exists? That you can use to check ifthe table exists and then only run the code if it does On 06/02/2009, at 6:51, Harold harold.gime...@gmail.com wrote: Excuse me, the code I need to wrap around the check is on ApplicationController. Still, any

[Rails] Re: A nicer way to join my hash?

2009-02-04 Thread Ryan Bigg
It can use IS NOT NULL too On 04/02/2009, at 15:58, Julian Leviston jul...@coretech.net.au wrote: SQL uses , not != Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 04/02/2009, at 4:24 PM, Darren Jeacocke rails-mailing-l...@andreas-s.net wrote: I know

[Rails] Re: PHP string + value to RoR

2009-02-04 Thread Ryan Bigg
% value = 1 % The value is %= value % Read the getting started guide on http://guides.rubyonrails.com and that will teach you a lot On 04/02/2009, at 16:07, Johnroy World rails-mailing-l...@andreas- s.net wrote: hello I'm new to RoR and i have concern regarding on how to output a

[Rails] Re: Call Model Method

2009-02-04 Thread Ryan Bigg
Model.method Controllers and models are not related so you can do this from any controller On 04/02/2009, at 16:36, Cyrus Dev rails-mailing-l...@andreas-s.net wrote: Hello Everyone any one know how to call model method in controller ? I have one method that is in model and want to

[Rails] Re: belongs_to :type, :class_name = ItemType

2009-02-02 Thread Ryan Bigg
If you set self.inheritance_column = nil on the model this may 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

[Rails] Re: ActiveRecord Unexplainable SystemStackError - Only in WEBrick

2009-02-02 Thread Ryan Bigg
Why not use a search plugin like thinking sphinx to do your searching for you? On 03/02/2009, at 6:06, MaggotChild hsomob1...@yahoo.com wrote: This SystemStackError is driving me crazy. It only takes place when testing with WEBrick - I can't reproduce it with any tests. It is caused by

[Rails] Re: Logging stuff

2009-02-02 Thread Ryan Bigg
Use acts_as_audited. On 03/02/2009, at 8:53 AM, aa aa wrote: Say I wanted to log all successful and failed saves to a special log table. But I also wanted to save the logged in user and some other session stuff. I assume I would have some sort of module included into the

[Rails] Re: Ruby 1.9.1 and Rails 2.3

2009-02-01 Thread Ryan Bigg
Just a little update. Right now I have the mysql, pg, hpricot and thin gems running on this setup. The guide is on the post that I posted earlier: http://frozenplague.net/2009/01/ruby-191-rubygems-rails/. There are no forseeable problems that stand out to me, everything appears to run fine for

[Rails] Re: Ruby 1.9.1 Windows rake tasks problem

2009-01-31 Thread Ryan Bigg
Holy thread resurrection batman! You need to be using edge rails. --~--~-~--~~~---~--~~ 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] Ruby 1.9.1 and Rails 2.3

2009-01-30 Thread Ryan Bigg
Hi, This morning I sat down and nutted out a way of getting Rails 2.3 to play nicely with Ruby 1.9.1. Here's a guide so you can do the same: http://frozenplague.net/2009/01/ruby-191-rubygems-rails/ - Ryan Bigg Mocra - Premier iPhone and Ruby on Rails Consultants w - http://mocra.com e

[Rails] Re: newbie question: types???

2009-01-27 Thread Ryan Bigg
There is documentation on the different field types at http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/Table.html#M001780 - Ryan Bigg Mocra - Premier iPhone and Ruby on Rails Consultants w - http://mocra.com e - ra...@mocra.com p - +61 432 937 289 or +61 7 3102 3237 skype

[Rails] Re: I have many Rails 3.0 questions here....

2009-01-27 Thread Ryan Bigg
You will know on a need-to-know basis and right now you don't need to know. We can't give information if there's nothing else to share. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: save value of text_field in the view

2009-01-26 Thread Ryan Bigg
If it is inside a form and that form points to the right action then that field will be passed in via the params hash On 26/01/2009, at 19:50, Maite Piedra rails-mailing-l...@andreas- s.net wrote: Maurício Linhares wrote: Could you please elaborate a little bit more? What do you mean

[Rails] Re: User Permalink in Rails ???

2009-01-26 Thread Ryan Bigg
You don't need to do self.username, just username will suffice On 26/01/2009, at 20:42, MatthewRudy matthewrudyjac...@gmail.com wrote: On Jan 25, 9:22 pm, Chris Johnson ch...@johnsonch.com wrote: You could just do that for the show method. Depending on your situation. If you were

[Rails] Re: Please help with a routing problem

2009-01-26 Thread Ryan Bigg
You need to define a member resource on the map.resources :users. For more information see the guide on routing on http://guides.rubyonrails.org On 26/01/2009, at 21:08, Adrian adrianlloydsm...@gmail.com wrote: Hi All I'm having some issues with the following routes problem. The

[Rails] Re: User Permalink in Rails ???

2009-01-26 Thread Ryan Bigg
into it, so it is equivalent to doing User.find(15). - Ryan Bigg Mocra - Premier iPhone and Ruby on Rails Consultants w - http://mocra.com e - ra...@mocra.com p - +61 432 937 289 or +61 7 3102 3237 skype - radarlistener On 27/01/2009, at 11:59 AM, Brian Hogan wrote: LOL There's no reason

[Rails] Re: Tutorials on Apache and Rails on mongrel

2009-01-26 Thread Ryan Bigg
I would suggest that you use passenger as that's much easier than the alternative solutions: http://modrails.com/ - Ryan Bigg On 27/01/2009, at 12:53 PM, Joshua Partogi wrote: Dear all, Could anyone refer me a good tutorial for setting up apache as the proxy for Rails apps

[Rails] Re: User Permalink in Rails ???

2009-01-26 Thread Ryan Bigg
map.connect ':username', :controller = users , :action = show At the bottom of your routes.rb file. - Ryan Bigg On 27/01/2009, at 1:07 PM, Louis-Pierre Dahito wrote: Brian Hogan wrote: LOL There's no reason to use to_param. It's just a convention to pass the id through

[Rails] Re: I have many Rails 3.0 questions here....

2009-01-26 Thread Ryan Bigg
Nobody knows exactly yet! Be patient and have faith that the rails/ merb guys know what they are doing. On 27/01/2009, at 15:06, Web Reservoir rails-mailing-l...@andreas- s.net wrote: Conrad Taylor wrote: Hi, you might want to read the following:

[Rails] Re: disadvantages of Ruby on Rails

2009-01-23 Thread Ryan Bigg
Switching over to passenger may help also. You can find it at http://modrails.com - Ryan Bigg Freelancer http://frozenplague.net On 24/01/2009, at 8:35 AM, Fernando Perez wrote: Alex Conner wrote: Could you give us some numbers, like the actual hardware you're using

[Rails] Re: how to make a soundex method in

2009-01-22 Thread Ryan Bigg
http://snippets.dzone.com/posts/show/4530 - Ryan Bigg Freelancer http://frozenplague.net On 22/01/2009, at 2:46 PM, Tim Dunn wrote: I am working with a table in my database where I am looking through every record to see if it matches with every other record in that same table

[Rails] Re: how to make a soundex method in

2009-01-22 Thread Ryan Bigg
Also... http://en.wikipedia.org/wiki/Soundex is helpful. - Ryan Bigg Freelancer http://frozenplague.net On 22/01/2009, at 2:46 PM, Tim Dunn wrote: I am working with a table in my database where I am looking through every record to see if it matches with every other record

[Rails] Re: Why this error ?

2009-01-17 Thread Ryan Bigg
Try putting a line break after the |page| and before the end - Ryan Bigg Freelancer http://frozenplague.net On 18/01/2009, at 7:05 AM, Phlip wrote: Tom Ha wrote: %= button_to_function 'Personal account' do |page| page.replace_html 'newagentpersonal', :partial = 'user/agents

[Rails] Re: Ruby on Rails Dates

2009-01-14 Thread Ryan Bigg
And http://github.com/radar/rboard - Fully supports Rails 2.2 and internationalisation. - Ryan Bigg Freelancer http://frozenplague.net On 14/01/2009, at 11:04 PM, Rob Pa wrote: Hi, I am using a MySQL database and have a row callsed date in my fixtures table. I am wanting

[Rails] Re: Number of entries

2009-01-13 Thread Ryan Bigg
@results should never be nil unless he's forgotten to define the variable which would just be Bad Programming. - Ryan Bigg Freelancer http://frozenplague.net On 14/01/2009, at 9:33 AM, Maurício Linhares wrote: And instead of empty, you should use blank?, that would work even

[Rails] Re: [ANN] SURVEY: Rails Hosting in 2009

2009-01-13 Thread Ryan Bigg
39 is a bit biased ;) - Ryan Bigg Freelancer http://frozenplague.net On 14/01/2009, at 5:20 AM, Robby Russell wrote: Hello all! We're running a survey over the coming weeks to collect information about how you all are currently deploying and hosting your Ruby on Rails

[Rails] Re: What sort of business logic should go in a model?

2009-01-12 Thread Ryan Bigg
I would define can_delete? on the user model, not the post model. User.rb def can_delete?(post) # code here end user.can_delete? makes more sense to me than post.can_delete?... You could rename the method to can_be_deleted_by? for clarity though.

[Rails] Re: undefined local variable or method `current_user' for

2009-01-11 Thread Ryan Bigg
He's missing include AuthenticatedSystem from application.rb - Ryan Bigg Freelancer http://frozenplague.net On 11/01/2009, at 5:04 PM, Matt Darby wrote: shahroon ali wrote: Yeah I checked it was installed properly, there was no error in installing it, i was just mistaken. I

[Rails] Re: Textile and h problems

2009-01-11 Thread Ryan Bigg
h(textilize(@mymessage)) - Ryan Bigg Freelancer http://frozenplague.net On 12/01/2009, at 2:50 PM, Mike C wrote: I installed Redcloth into my app so that it could use Textile. However, it seems that textilize (the function used to parse the Textile stuff) and h aren't compatible

[Rails] Re: What is wrong with validates_presence_of :my_association ?

2009-01-08 Thread Ryan Bigg
That will check the value for a field called category, not an association. - Ryan Bigg Freelancer http://frozenplague.net On 09/01/2009, at 10:43 AM, Ben Johnson wrote: Category.has_many :products Let's say a product must belong to a category. I know it is recommended to do

[Rails] Re: Installing Ruby on Rails

2009-01-08 Thread Ryan Bigg
http://guides.rubyonrails.org/getting_started_with_rails.html - Ryan Bigg Freelancer http://frozenplague.net On 09/01/2009, at 10:49 AM, crazy canuck wrote: I am completely new to all of this. I was told by a potential employer if I learned Ruby on Rails and PostgreSQL I would have

[Rails] Re: To get more understanding of REST

2009-01-08 Thread Ryan Bigg
http://guides.rubyonrails.org has a routing guide which is pretty comprehensive. - Ryan Bigg Freelancer http://frozenplague.net On 09/01/2009, at 5:31 PM, Sijo Kg wrote: Hi Could any body please explain the difference below map.resources :people map.resource :book

[Rails] Re: A problem of ignoring newline in textarea

2009-01-07 Thread Ryan Bigg
simple_format(your_text_here) - Ryan Bigg Freelancer http://frozenplague.net On 08/01/2009, at 1:00 PM, Zhao Yi wrote: srj wrote: You should not try that because the text area is designed to wrap text automatically - there really are not new line characters in the text area

[Rails] Re: A problem of ignoring newline in textarea

2009-01-07 Thread Ryan Bigg
no, you don't have to write the \n. When people type new lines it automatically puts in the \n, or in some cases a \r\n. This means simple_format will work. - Ryan Bigg Freelancer http://frozenplague.net On 08/01/2009, at 1:18 PM, Zhao Yi wrote: Ryan Bigg wrote: simple_format

[Rails] Re: Rails 2.2 on Mac OSX 10.5

2009-01-07 Thread Ryan Bigg
You've named a model after something that's a reserved module in Rails. Call it something else. - Ryan Bigg Freelancer http://frozenplague.net On 08/01/2009, at 3:30 PM, Adam wrote: I need some help figuring out what is wrong with my 2.2 installation of rails on Mac OSX 10.5

[Rails] Re: Security framework

2009-01-06 Thread Ryan Bigg
http://github.com/ezmobius/acl_system2 - Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 10:55 PM, Joshua Partogi wrote: Dear all, Could anyone refer me a good security framework in rails for authentication and authorization please? Thanks in advance

[Rails] Re: self-referential joins with :through raises TypeError

2009-01-05 Thread Ryan Bigg
http://frozenplague.net/2008/04/self-referrential-relationships/ - Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 5:51 AM, Taylor Strait wrote: Never fixed it :( -- Posted via http://www.ruby-forum.com

[Rails] Re: Quick one! -- Project Messages!!

2009-01-05 Thread Ryan Bigg
would be called messages_controller and the action would be called index, not messages. - Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 6:02 AM, Dave Smith wrote: Sazima wrote: 1. Route (config/routes.rb): map.with_options(:controller = 'messages') do |m

[Rails] Re: Rails apps packaging

2009-01-05 Thread Ryan Bigg
Bobnation means config/environment.rb, not application.rb - Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 8:39 AM, Bobnation wrote: Have you configured you application.rb so that the gems are included there? On Jan 5, 3:19 pm, Joshua Partogi joshua.j...@gmail.com

[Rails] Re: Missing Template with edge Rails (2.3)

2009-01-05 Thread Ryan Bigg
. - Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 9:53 AM, Rich wrote: Correction: I meant 'respond_to', not 'respond_do'. On Jan 3, 11:17 pm, Rich richpoir...@gmail.com wrote: After freezing edge rails, all my controller examples are failing with MissingTemplate errors

[Rails] Re: Some tasks that will help index your db

2009-01-05 Thread Ryan Bigg
[:][c][o][n][d][i][t][i][o][n][s].[=][]. Er, what? Why not just match for :conditions? - Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 10:03 AM, Ben wrote: If you are looking to improve your database performance, you might want to index your database, esspecially

[Rails] Re: Create a logging system

2009-01-04 Thread Ryan Bigg
Use something like restful_authentication http://github.com/technoweenie/restful_authentication - Ryan Bigg Freelancer http://frozenplague.net On 04/01/2009, at 8:57 PM, Sobert wrote: Hello. I would like to create a loggin system. I have a players model with name and passwd

[Rails] Re: Adding routes and link_to

2009-01-04 Thread Ryan Bigg
can you show us the code you're using for the link_tos please? - Ryan Bigg Freelancer http://frozenplague.net On 04/01/2009, at 8:49 PM, Sobert wrote: Hello. I've added some routes : map.news 'news', :controller = :News, :action =:index map.login 'login', :controller

[Rails] Re: Presenters in Rails

2008-12-31 Thread Ryan Bigg
http://www.google.com/search?client=safarirls=en-usq=presenters+railsie=UTF-8oe=UTF-8 - Ryan Bigg Freelancer http://frozenplague.net On 31/12/2008, at 4:28 PM, Sijo Kg wrote: Hi Could anybody please explain what are presenters in Rails and how they are used? Thanks in advance

[Rails] Re: Problem with downloading Ziya plugin

2008-12-31 Thread Ryan Bigg
You're going to have to download from github if nothing else works. No reason not to. Just download it and extract it into vendor/plugins - Ryan Bigg Freelancer http://frozenplague.net On 31/12/2008, at 4:35 PM, Dharmdip Rathod wrote: hello , i am trying to download Ziya plugin

[Rails] Re: count a occurence of given attribute

2008-12-31 Thread Ryan Bigg
Just do: agent.confirm_clients.count([confirm = ?, true]) - Ryan Bigg Freelancer http://frozenplague.net On 31/12/2008, at 5:41 PM, Ishara Gunathilake wrote: hi,, i have a two tables named agents and confirm_clients in confirm_clients columns t.column :client_id, :string

[Rails] Re: Forms fields pre-populating w/ first record's values

2008-12-30 Thread Ryan Bigg
form_tag does not tag a string as an argument. Could you show us your controller please? Also, it may help you if you read http://guides.rubyonrails.org/getting_started_with_rails.html first. - Ryan Bigg Freelancer http://frozenplague.net On 31/12/2008, at 12:30 PM, Clem Rock

[Rails] Re: Ansuz CMS

2008-12-30 Thread Ryan Bigg
The code for the forums controller looks suspiciously like Beast's. Perhaps a little bit of attribution credit wouldn't go astray? - Ryan Bigg Freelancer http://frozenplague.net On 31/12/2008, at 1:34 PM, knewter wrote: Hello everyone, I just wanted to introduce Ansuz (a rails

[Rails] Re: Ansuz CMS

2008-12-30 Thread Ryan Bigg
Looks good, 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

[Rails] Re: is this a localised one

2008-12-28 Thread Ryan Bigg
Rails 2.2 has localization built in use that On 28/12/2008, at 20:31, Nike Mike rails-mailing-l...@andreas-s.net wrote: I have seen redmine code whats the use of having %=l(:label_user_plural)% .whether l is onlu for localised -- Posted via http://www.ruby-forum.com/.

[Rails] Re: 2.2.2 simple_captcha upgrade error

2008-12-28 Thread Ryan Bigg
Try to install the postgres-pr gem install and use that. - Ryan Bigg Freelancer http://frozenplague.net On 29/12/2008, at 3:48 PM, Andrew Bloom wrote: It's not the postgres (psql) version thats the problem, its actually the ruby postgres gem that ActiveRecord uses to connect

[Rails] Re: No Configuration!!! WHAT?!

2008-12-24 Thread Ryan Bigg
You're posting on a ruby forum, about how good python is? Um... right. - Ryan Bigg Freelancer http://frozenplague.net On 24/12/2008, at 5:55 PM, Oroku Saki wrote: So, I came from PHP, and CodeIgniter (which is nice, but restrictive with no ORM)I spent the last 9 months trying

[Rails] Re: No Configuration!!! WHAT?!

2008-12-24 Thread Ryan Bigg
Smells like a troll. Types like a troll. Must be a troll. Nice try though. --~--~-~--~~~---~--~~ 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: Restful routes question

2008-12-24 Thread Ryan Bigg
What you're after is :collection, not :member. http://frozenplague.net/2008/01/restful-routing-an-overview/ - Ryan Bigg Freelancer http://frozenplague.net On 24/12/2008, at 10:40 PM, Jens -- wrote: Hi all, This is something I puzzle for quite a while. I need just one more

[Rails] Re: No Configuration!!! WHAT?!

2008-12-24 Thread Ryan Bigg
Oh, it's just that somebody who has spent 8-10 years taking programming courses, Probably for Java or C. and teaches 5 level programming Probably Java or C. tends to probably know a bit About Java or C. your average railbird who hasn't done anything important. Sounds like a

[Rails] Re: is there plan for rails 3.0 based on merb?

2008-12-23 Thread Ryan Bigg
Rails 3.0 is going to bring script/generate site [digg|facebook| myspace|lastfm] - Ryan Bigg Freelancer http://frozenplague.net On 24/12/2008, at 8:48 AM, Martin wrote: Anatoly Mikhailov schrieb: It was happen! http://railsgeek.com/2008/12/23/rails-3-rails-and-merb-merge Maybe

[Rails] Re: what's the advantage of using build and ??

2008-12-23 Thread Ryan Bigg
should save @article when you add a new comment. - Ryan Bigg Freelancer http://frozenplague.net On 24/12/2008, at 3:02 PM, Zhenning Guan wrote: Rails give us two ways to create a asociation object: @article = Article.new(params[:article]) @article.comments Comment.new(params

[Rails] Re: Passing aariable from controller to a different view ????

2008-12-22 Thread Ryan Bigg
Use restful authentication (or a similar plugin) for tracking that kind of stuff: http://github.com/technoweenie/restful_authentication - Ryan Bigg Freelancer http://frozenplague.net On 22/12/2008, at 11:53 PM, Dave Smith wrote: Hi Guys, I am still very new to this rails stuff

[Rails] Re: Confused with naming conventions...

2008-12-21 Thread Ryan Bigg
Some resources you'll want singular controllers for, like session management. Others you'll want plural controllers for, like forums, topics, posts and users. Think about how many items you're dealing with at a time and then let that dictate how your controllers are named. - Ryan Bigg

[Rails] Re: upload an image

2008-12-21 Thread Ryan Bigg
Without using any plugins? You're going to have a fair bit of trouble :) Plugins are very helpful for that kind of thing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: Legacy database: help needed

2008-12-20 Thread Ryan Bigg
qvvalup is not the same as qvvaluf, unless you're speaking a language I'm not recognising. Rails works best with english words and pluralization. Somewhere in your app you're referencing qvvaluf_path... probably a scaffold somewhere. Got a stack trace for us? - Ryan Bigg Freelancer http

[Rails] Re: Spam in my comments

2008-12-19 Thread Ryan Bigg
acts_as_snook is great for capturing stuff like that: http://github.com/rsl/acts_as_snook - Ryan Bigg Freelancer http://frozenplague.net On 20/12/2008, at 9:14 AM, Maurício Linhares wrote: For what? A link? Your user could paste a link. There's no easy way to tell

[Rails] Re: When to use #show action in RESTful application

2008-12-19 Thread Ryan Bigg
Rboard can be found at http://gitpilot.co - Ryan Bigg Freelancer http://frozenplague.net On 20/12/2008, at 11:40 AM, jasoo24 wrote: For my admin pages, I always use the edit action instead of show. It cuts down on the amount of work and I find it more useful that way. Hey Ryan

[Rails] Re: Counter to keep track of references?

2008-12-17 Thread Ryan Bigg
Also, @country.messages.count will do an SQL COUNT query and return it. Thorsten's suggestion is quicker of course since you're only performing one query. - Ryan Bigg Freelancer http://frozenplague.net On 18/12/2008, at 12:56 AM, Thorsten Müller wrote: if you have that defined

[Rails] Re: Rails 2.2.2 and globalize - undefined method `render_file' for class `ActionView::Base' (NameError)

2008-12-17 Thread Ryan Bigg
Clemens, Rails 2.2 has I18n support built in and you don't need to use additional plugins. - Ryan Bigg Freelancer http://frozenplague.net On 17/12/2008, at 11:03 PM, Clemens wrote: first: both on D: second: this is IMHO not the problem. As mentioned above: globalize aliases

[Rails] Re: Best way to collect child rows

2008-12-17 Thread Ryan Bigg
def tags pages.map(:items).map(:tags) end If you must. --~--~-~--~~~---~--~~ 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] Re: Which Sphinx Plugin?

2008-12-17 Thread Ryan Bigg
thinking sphinx - Ryan Bigg Freelancer http://frozenplague.net On 18/12/2008, at 12:01 PM, tashfeen.ekram wrote: I was wondering if someone could advise me on which sphinx plugin to use. the ones i have found are below: Sphincter: http://seattlerb.rubyforge.org/Sphincter

[Rails] Re: More than one submit_tag in a single form

2008-12-17 Thread Ryan Bigg
and then you could check the value of the submit button and send it to the right action: if params[:commit] == foo foo else bar end --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: When to use #show action in RESTful application

2008-12-17 Thread Ryan Bigg
the page for a blog resource then that's fine imo. - Ryan Bigg Freelancer http://frozenplague.net On 18/12/2008, at 1:52 PM, Patrick Doyle wrote: I am curious what folks do with the #show action (and its associated view) in a RESTful application. How often is it used? It seems

[Rails] Re: distributing a rails application

2008-12-17 Thread Ryan Bigg
Github! All the entries from my .gitignore file: log/*.log log/searchd* tmp/* db/*.sqlite3 db/sphinx/* config/database.yml test coverage coverage/* config/*.sphinx.conf config/deploy.rb - Ryan Bigg Freelancer http://frozenplague.net On 18/12/2008, at 2:55 PM, Little Known wrote

[Rails] Re: distributing a rails application

2008-12-17 Thread Ryan Bigg
I have a spec dir, not a test dir. - Ryan Bigg Freelancer http://frozenplague.net On 18/12/2008, at 3:03 PM, Andrew Bloom wrote: why ignore the test dir? dont you want to share those? On Dec 17, 10:28 pm, Ryan Bigg radarliste...@gmail.com wrote: Github! All the entries from my

[Rails] Re: Thoughts on controllers

2008-12-16 Thread Ryan Bigg
Take a forum system, hypothetically. You have topics and posts controllers which both contain the 7 default RESTful actions. Then you realise Oh, I want to add in a functionality that allows me to split topics based on the positioning of certain posts. Ah! A conundrum! So what do you do

[Rails] Re: My first rspec reports undefined method `key?' for #String:0x46b1df0

2008-12-16 Thread Ryan Bigg
There's probably a stack trace associated with that error, try looking in that. - Ryan Bigg Freelancer http://frozenplague.net On 17/12/2008, at 5:31 PM, 乱翻字典 wrote: this my first rspec test, it is very simple

[Rails] Re: Fukuoka Ruby Award--about $10,000 for first prize

2008-12-15 Thread Ryan Bigg
It's Engrish, obviously. I'm sure their Japanese skills are better. - Ryan Bigg Freelancer http://frozenplague.net On 16/12/2008, at 1:30 PM, Michael Kahle wrote: By no means have I learned enough Ruby ninjutsu to dream of entering a Ruby competition. That said, what does

[Rails] Re: why is wrong with this code - the model save! method does not seem to give a correct response back?

2008-12-14 Thread Ryan Bigg
Transaction is a reserved class in Rails. - Ryan Bigg Freelancer http://frozenplague.net On 14/12/2008, at 9:13 PM, Greg Hauptmann wrote: still stuck here When I create a new allocation model object, I check it is valid OK, but when I save! it I just get a nil? What would

[Rails] Re: REST v/s SOAP

2008-12-13 Thread Ryan Bigg
http://en.wikipedia.org/wiki/REST#REST_versus_RPC - Ryan Bigg Freelancer http://frozenplague.net On 14/12/2008, at 1:02 AM, Margareth Florián wrote: Hi, Sijo SOAP and REST are different thinks. SOAP is and envelop protocol like HTTP. REST is a design style for a stateless client

[Rails] Re: Ruby Arrays - Passing arrays from a function possible?

2008-12-11 Thread Ryan Bigg
Or I think you can do *args for the receivIng method and then call it like method(product_attributes) and that will pass the array to the method On 11/12/2008, at 17:27, Codeblogger [EMAIL PROTECTED] wrote: Hi! def product_attributes [product, quantity, description, color, size] end

[Rails] Re: Where do I start?

2008-12-11 Thread Ryan Bigg
If I had to learn rails again I would learn ruby first then drift over into rails because I think that would give you a better understanding of how ruby works On 12/12/2008, at 5:55, olivierntk olivier...@gmail.com wrote: I started rails by reading Beginning Rails from Apress. It will

[Rails] Re: Where do I start?

2008-12-10 Thread Ryan Bigg
http://guides.rails.info/getting_started_with_rails.html - Ryan Bigg Freelancer http://frozenplague.net On 11/12/2008, at 6:27 AM, Painting With Purpose wrote: I want to become a Rails web developer. I am not a programmer by any means. I have built one static website and am

[Rails] Re: What does the --git option do?

2008-12-10 Thread Ryan Bigg
If you do mkdir project cd project git init rails . --git it will add all the rails files to a git repository. - Ryan Bigg Freelancer http://frozenplague.net On 11/12/2008, at 6:32 AM, Sergio Ruiz wrote: in starting a new project, i decided to try using the --git option

[Rails] Re: Tag clouds

2008-12-09 Thread Ryan Bigg
You are trying to use a controller method like a helped method. Try moving the method to applicationhelper and seeing if that works On 09/12/2008, at 21:56, Sulekha Mariam [EMAIL PROTECTED] wrote: I was working through the simply rails book, i have completed up to chapter 10, now i

[Rails] Re: wrong number of arguments (0 for 1) error.... Help!!!

2008-12-09 Thread Ryan Bigg
I have no clue. Author.find_by_name should be working when it (apparently) is not. Something is broken. - Ryan Bigg Freelancer http://frozenplague.net On 10/12/2008, at 8:44 AM, Jay Mark wrote: Ryan Bigg wrote: And finally, what version of Rails? - Ryan Bigg Freelancer

[Rails] Re: wrong number of arguments (0 for 1) error.... Help!!!

2008-12-09 Thread Ryan Bigg
It's supported. It's the syntax I showed you before: Author.find_by_name(Blah).books, will get you all the books by that author. - Ryan Bigg Freelancer http://frozenplague.net On 10/12/2008, at 3:36 PM, Jay Mark wrote: Ryan Bigg wrote: I have no clue. Author.find_by_name should

  1   2   >