[Rails] Please fix select_tag in 3.2.8

2012-08-16 Thread Sergey Ezhov
Hi! In 3.2.7 this code was possible if 'auto_models_for_select' is nil : %= select_tag :model, auto_models_for_select, :include_blank = true, :disabled = auto_models_for_select.nil? % In 3.2.8 this should be : %= select_tag :model, auto_models_for_select || '', :include_blank = true, :disabled =

[Rails] Re: [ANN] Rails 3.2.8 has been released!

2012-08-13 Thread Sergey Ezhov
Hi! In 3.2.7 this code was possible if 'auto_models_for_select' is nil : %= select_tag :model, auto_models_for_select, :include_blank = true, :disabled = auto_models_for_select.nil? % In 3.2.8 this should be : %= select_tag :model, auto_models_for_select || '', :include_blank = true, :disabled

[Rails] Re: Re: Re: Re: Rails Tutorial 3 attribue unknown

2012-05-11 Thread Sergey Ezhov
vishal singh wrote in post #1060022: In users table their is wrong field name i.e password_digest,it should be only password not password_digest Someone mentioned 'password_digest'? Only 'password' and 'password_confirmation'. -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Re: Rails Tutorial 3 attribue unknown

2012-05-08 Thread Sergey Ezhov
Rodrigo Vieira wrote in post #1059872: Be aware that, it is not safe to set passwords changeable via mass-assignment. Your decision, please? How it to solve? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Re: Re: Rails Tutorial 3 attribue unknown

2012-05-08 Thread Sergey Ezhov
This example doesn't work without 'attr_accessable: ... , :password, :password_confirmation ...' and with 'has_secure_password' How to set the record field comming from form field? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: Rails Tutorial 3 attribue unknown

2012-05-06 Thread Sergey Ezhov
I simply add in model: attr_accessible ... :password, :password_confirmation, ... it work but it can not absolutely truly -- 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,

[Rails] Engine: Where there should be a database.yml ?

2012-05-06 Thread Sergey Ezhov
For developing an Engine. Where there should be a database.yml file for a configuration of connection with database? I place into engine_dir/test/dummy/config/database.yml It works. But why there? It not an obvious place for configuration placement, it only test-directory. -- Posted via

[Rails] Engine: access to url_helpers otside view/controller

2012-05-01 Thread Sergey Ezhov
I use Engine. How to get access to url_helpers, such as name_path or _name_url, in a separate class? In application it simple: Rails.application.routes.url_helpers.name_path But how to get access to url_helpers in Engine? When I use Rails.application.routes.url_helpers.root_path, then I get '/',

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Sergey Ezhov
And how about a good documentary code and all as good documentation to it? For some reason developers of PHP weren't too lazy to create documentation design team. I do not think that those who well write documentation as well write also a code. But they are able to write well documentation.

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Sergey Ezhov
was: I on the contrary want, that Ruby the first because it is fine language and the fine tool for developers. But to be the first, it is necessary to do a little more than it is simple to write the fine tool - at least to make rather good documentation. I on the contrary want, that Ruby became

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Sergey Ezhov
I don't know, what advantage is received by developers from popularity of language, from popularity of framework. But the fact remains. One develop a product from beginning to end, others - hope that people will get into source codes and all will understand, or someone another will write good

[Rails] Re: Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd e

2012-04-25 Thread Sergey Ezhov
Michael Pavling wrote in post #1058271: On 25 April 2012 09:50, Sergey Ezhov li...@ruby-forum.com wrote: And how about a good documentary code and all as good documentation to it? Of course, that's the ideal situation :-) Which of those frameworks has that? ;-) Nobody. But they attract

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Sergey Ezhov
But you haven't answered my suggestion that if you think the core team are lacking in documentation skills, could you help contribute? I started to use only recently the Ruby on Rails. Yet the professional also I do not know all subtleties and details of this framework. The vicious circle turns

[Rails] Re: Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd e

2012-04-25 Thread Sergey Ezhov
And let's not forget what I already referred to as the great Ruby API docs: http://www.ruby-doc.org/core-1.8.6/ http://www.ruby-doc.org/core-1.8.7/ http://www.ruby-doc.org/core-1.9.3/ In http://www.ruby-doc.org/core-1.9.3/ - Core Try, for example, to find a method method_missing.

[Rails] Re: Re: Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2

2012-04-25 Thread Sergey Ezhov
Michael Pavling wrote in post #1058287: On 25 April 2012 11:11, Sergey Ezhov li...@ruby-forum.com wrote: Try, for example, to find a method method_missing. Fail! http://rubydoc.info/stdlib/core/1.9.3/BasicObject#method_missing-instance_method example fail... And generally it absolutely

[Rails] Re: Re: Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2

2012-04-25 Thread Sergey Ezhov
Look, you're talking about things being difficult for beginners, and then wave method_missing as an example - to play with that is pretty serious meta-programming which will blow up horribly if you don't know what you're doing. There *is* plenty of reference for *how* to use method_missing if

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Sergey Ezhov
Certainly, I will be glad to help! As soon as I will acquire experience with the Ruby on Rails, I will try to make the contribution to documenting. For now I only stated the opinion of an existing problem in study for beginners. Very much I hope that developers of the Ruby on Rails will take

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Sergey Ezhov
Robert Walker wrote in post #1058397: Kevin McCaughey wrote in post #1058376: Robert Walker wrote in post #1058190: If every method, of every class, were fully documented by the team building Rails then nothing would ever get done. This is the perenail excuse - It's too big, so we just

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Sergey Ezhov
Kevin McCaughey wrote in post #1058376: STOP! Stop adding bits on and go back and tidy up the mess. Thanks! Very sensible thought! Well formulated. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-24 Thread Sergey Ezhov
These are all excuses. All problem in an approach to documentation creation, unwillingness to create normal documentation. Creators of RoR should try to create good documentation, and not just good framework. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-24 Thread Sergey Ezhov
There is a set of examples where people approached more responsibly to documentation creation, for example: http://www.yiiframework.com, http://kohanaframework.org, http://framework.zend.com/ I suppose, they reflected on convenience of use of tools to developers. -- Posted via

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-23 Thread Sergey Ezhov
from forum Ruby: http://api.rubyonrails.org/ - disgusting documentation! There are no descriptions of all classes, there are no descriptions of their correlations, there are no descriptions of many methods (there are only references of existence of methods, names of methods, but unless it is

[Rails] Feeble documentation - weakness of Ruby on Rails

2012-04-22 Thread Sergey Ezhov
Feeble documentation - weakness of Ruby on Rails Directly I apologize for my English - I used the automatic translator. If there is a possibility, find the person, knowing Russian better, it will translate you correctly the text. Address to developers of Ruby and Ruby on Rails: Hi It would be

[Rails] Re: Feeble documentation - weakness of Ruby on Rails

2012-04-22 Thread Sergey Ezhov
I apologize, confused the site name: not php.org, it is correct - php.net Already switched to Ruby, long ago didn't look on a site PHP. == Извиняюсь, перепутал название сайта: не php.org, правильно - php.net Уже переключился на Ruby, давно не заглядывал на сайт PHP. -- Posted via

[Rails] To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd edition)

2012-04-22 Thread Sergey Ezhov
Directly I apologize for my English - I used the automatic translator. If there is a possibility, find the person, knowing Russian better, it will translate you correctly the text. Address to developers of Ruby and Ruby on Rails: (If someone has a possibility to communicate directly with