[#386100] Numeric#coerce docs are disaster — 7stud -- <bbxx789_05ss@...>

num.coerce(numeric) =E2=86=92 array

14 messages 2011/08/02

[#386114] Documentation Improvement Proposal — Chris White <cwprogram@...>

=3D Issues =3D

24 messages 2011/08/02
[#386115] Re: Documentation Improvement Proposal — Steve Klabnik <steve@...> 2011/08/02

I reeeeeealy dislike user comments on documentation. It's one of the

[#386117] Re: Documentation Improvement Proposal — Phillip Gawlowski <cmdjackryan@...> 2011/08/02

On Tue, Aug 2, 2011 at 7:39 PM, Steve Klabnik <steve@steveklabnik.com> wrot=

[#386118] Re: Documentation Improvement Proposal — Steve Klabnik <steve@...> 2011/08/02

> What's wrong with stealing WikiPedia's procedures? The model works

[#386119] Re: Documentation Improvement Proposal — Chris White <cwprogram@...> 2011/08/02

On Aug 2, 2011, at 11:00 AM, Steve Klabnik wrote:

[#386123] Re: Documentation Improvement Proposal — Steve Klabnik <steve@...> 2011/08/02

Apologies, I've just responded to everyone in-line.

[#386231] Brainstorming ideas how to improve Ruby's documentation — Marc Heiler <shevegen@...>

The title is misleading...

42 messages 2011/08/05
[#386233] Re: Brainstorming ideas how to improve Ruby's documentation — "Fred L." <f.linard@...> 2011/08/05

Hello,

[#386235] Re: Brainstorming ideas how to improve Ruby's documentation — Alexander Litvinovsky <alexander.litvinovsky@...> 2011/08/05

What are you talking about? Ruby has a nice docs, railsapi.com for example.

[#386297] Help out with the next version of ruby-lang.org — Magnus Holm <judofyr@...>

https://github.com/rubylang/ruby-lang.org

11 messages 2011/08/07

[#386341] Exceptional Ruby and Metaprogramming Ruby has anyone picked these up? — Kevin <darkintent@...>

I'm thinking of picking up these two books and was wondering if anyone

11 messages 2011/08/09

[#386378] ruby installation — "Momodou J." <modou75alieu@...>

how to implement this in windows :

16 messages 2011/08/09

[#386401] *WHY* does this not work? — serialhex <serialhex@...>

ok, so code:

23 messages 2011/08/09
[#386403] Re: *WHY* does this not work? — "Darryl L. Pierce" <mcpierce@...> 2011/08/09

On Wed, Aug 10, 2011 at 03:52:59AM +0900, serialhex wrote:

[#386404] Re: *WHY* does this not work? — serialhex <serialhex@...> 2011/08/09

On Tue, Aug 9, 2011 at 3:05 PM, Darryl L. Pierce <mcpierce@gmail.com> wrote:

[#386480] Odd regexp behavior — Glen Holcomb <damnbigman@...>

I'm running 1.9.2-p180

16 messages 2011/08/10

[#386506] Distributing Ruby program as a standalone executable (exe) for windows — Michelle Pace <michelle@...>

Hello there,

10 messages 2011/08/11

[#386539] Online tutor for Ruby — T J Pereira <tj5155@...>

I am finding it difficult to apply the RUBY program. Its because i have

18 messages 2011/08/12
[#386541] Re: Online tutor for Ruby — Phillip Gawlowski <cmdjackryan@...> 2011/08/12

On Fri, Aug 12, 2011 at 6:00 AM, T J Pereira <tj5155@tm.net.my> wrote:

[#386637] class inheritance and class constants — Iñaki Baz Castillo <ibc@...>

------------------------

16 messages 2011/08/14

[#386784] Green Shoes v1.0 released — ashbb <ashbbb@...>

Hello, everyone.

15 messages 2011/08/18
[#392062] Re: Green Shoes v1.0 released — Barry Yu <yubarry@...> 2012/01/09

why do I get this error?

[#386796] Searching in a directory — Yu Yu <htwoo@...>

Hello,

21 messages 2011/08/18

[#386893] Gritty Details of super() — luke gruber <luke.gru@...>

Hey guys,

18 messages 2011/08/21

[#386900] Possble bug in Ruby parser (Fixnum#times within "case" statement) — Iñaki Baz Castillo <ibc@...>

Hi, I cannot find an explanation for the following issue so I think it's a =

15 messages 2011/08/21
[#386901] Re: Possble bug in Ruby parser (Fixnum#times within "case" statement) — Ryan Davis <ryand-ruby@...> 2011/08/21

[#386903] Re: Possble bug in Ruby parser (Fixnum#times within "case" statement) — Iñaki Baz Castillo <ibc@...> 2011/08/21

2011/8/22 Ryan Davis <ryand-ruby@zenspider.com>:

[#386920] New to Ruby some problems — jack jones <shehio_22@...>

I am new to Ruby, My mother tongue is C++ .. I have too many problems I

21 messages 2011/08/22

[#386949] Want to get involved with this doc stuff? I'm making it even easier — Steve Klabnik <steve@...>

Hey guys-

9 messages 2011/08/22

[#387058] How the access the values of this result — QAS WM <qaiserwali@...>

I am getting the following as a result of a script I run.

11 messages 2011/08/26

[#387070] overloading methods question please? — jack jones <shehio_22@...>

def do_something(a as Array)

11 messages 2011/08/26

[#387138] String#split resets regex captures variables (Ruby 1.8.7) — Olivier Lance <bestiol@...>

Hi,

10 messages 2011/08/29

[#387196] SAMSUNG to produce "Ruby on Rails in Silicon" System on a Chip — Ilias Lazaridis <ilias@...>

(public draft)

9 messages 2011/08/31

[#387197] Prepend a character to a string in ruby — ruby rails <rubyonrails4me@...>

Hi,

10 messages 2011/08/31

[#387212] GUI programming — Samuel Mensah <sasogeek@...>

Is ruby GUI programming something that will come along as I study ruby

19 messages 2011/08/31
[#387230] Re: GUI programming — Alexey Petrushin <axyd80@...> 2011/08/31

I believe right now it's better to stay with console, there's no Ruby

Re: Rails 3.1.0 has been released!

From: 7stud -- <bbxx789_05ss@...>
Date: 2011-08-31 05:10:50 UTC
List: ruby-talk #387192
Aaron Patterson wrote in post #1019311:
> Hi everybody!
>
> It's been 3 Months since RailsConf, so I think it's time we released
> Rails 3.1.0.  So, here it is!  I've released Rails 3.1.0!
>
> ## CHANGES
>
> For a much more attractive and easy to read list of changes, please
> check out the awesome [Rails 3.1.0 Release Notes on the Rails Guides
> site](http://guides.rubyonrails.org/3_1_release_notes.html).
>

Trying to read raw html is not awesome:


<div class=3D"code_container">
<pre class=3D"brush: ruby; gutter: false; toolbar: false">has_many
:things, :conditions =3D> proc { ["foo =3D ?", bar] }
</pre><p></p>
</div>
<p></p>
<ul>
    <li>Previously <tt>:insert_sql</tt> and <tt>:delete_sql</tt> on
<tt>has_and_belongs_to_many</tt> association allowed you to call
=E2=80=98record=E2=80=99 to get the record being inserted or deleted. Thi=
s is now passed
as an argument to the proc.</li>
</ul>
<ul>
    <li>Added <tt>ActiveRecord::Base#has_secure_password</tt> (via
<tt>ActiveModel::SecurePassword</tt>) to encapsulate dead-simple
password usage with BCrypt encryption and salting.
<div class=3D"code_container">

<div class=3D"code_container">
<pre class=3D"brush: ruby; gutter: false; toolbar: false">
    <li>Schema: User(name:string, password_digest:string,
password_salt:string)
class User < ActiveRecord::Base
  has_secure_password
end
</li></pre>
</div>

</div></li></ul>
<ul>
    <li>When a model is generated <tt>add_index</tt> is added by default
for <tt>belongs_to</tt> or <tt>references</tt> columns.</li>
</ul>
<ul>
    <li>Setting the id of a <tt>belongs_to</tt> object will update the
reference to the object.</li>
</ul>
<ul>
    <li><tt>ActiveRecord::Base#dup</tt> and
<tt>ActiveRecord::Base#clone</tt> semantics have changed to closer match
normal Ruby dup and clone semantics.</li>
</ul>
<ul>
    <li>Calling <tt>ActiveRecord::Base#clone</tt> will result in a
shallow copy of the record, including copying the frozen state. No
callbacks will be called.</li>
</ul>
<ul>
    <li>Calling <tt>ActiveRecord::Base#dup</tt> will duplicate the
record, including calling after initialize hooks. Frozen state will not
be copied, and all associations will be cleared. A duped record will
return <tt>true</tt> for <tt>new_record?</tt>, have a <tt>nil</tt> id
field, and is saveable.</li>
</ul>
<ul>
    <li>The query cache now works with prepared statements. No changes
in the applications are required.</li>
</ul>
<h3 id=3D"active-model">7 Active Model</h3>
<ul>
    <li><tt>attr_accessible</tt> accepts an option <tt>:as</tt> to
specify a role.</li>
</ul>
<ul>
    <li><tt>InclusionValidator</tt>, <tt>ExclusionValidator</tt>, and
<tt>FormatValidator</tt> now accepts an option which can be a proc, a
lambda, or anything that respond to <tt>call</tt>. This option will be
called with the current record as an argument and returns an object
which respond to <tt>include?</tt> for <tt>InclusionValidator</tt> and
<tt>ExclusionValidator</tt>, and returns a regular expression object for
<tt>FormatValidator</tt>.</li>
</ul>
<ul>
    <li>Added <tt>ActiveModel::SecurePassword</tt> to encapsulate
dead-simple password usage with BCrypt encryption and salting.</li>
</ul>
<ul>
    <li><tt>ActiveModel::AttributeMethods</tt> allows attributes to be
defined on demand.</li>
</ul>
<ul>
    <li>Added support for selectively enabling and disabling
observers.</li>
</ul>
<ul>
    <li>Alternate <tt>I18n</tt> namespace lookup is no longer
supported.</li>
</ul>
<h3 id=3D"active-resource">8 Active Resource</h3>
<ul>
    <li>The default format has been changed to <span
class=3D"caps">JSON</span> for all requests. If you want to continue to
use <span class=3D"caps">XML</span> you will need to set <tt>self.format =
=3D
:xml</tt> in the class. For example,</li>
</ul>
<div class=3D"code_container">
<pre class=3D"brush: ruby; gutter: false; toolbar: false">class User <
ActiveResource::Base
  self.format =3D :xml
end
</pre>
</div>
<h3 id=3D"active-support">9 Active Support</h3>
<ul>
    <li><tt>ActiveSupport::Dependencies</tt> now raises
<tt>NameError</tt> if it finds an existing constant in
<tt>load_missing_constant</tt>.</li>
</ul>
<ul>
    <li>Added a new reporting method <tt>Kernel#quietly</tt> which
silences both <tt>STDOUT</tt> and <tt>STDERR</tt>.</li>
</ul>
<ul>
    <li>Added <tt>String#inquiry</tt> as a convenience method for
turning a String into a <tt>StringInquirer</tt> object.</li>
</ul>
<ul>
    <li>Added <tt>Object#in?</tt> to test if an object is included in
another object.</li>
</ul>
<ul>
    <li><tt>LocalCache</tt> strategy is now a real middleware class and
no longer an anonymous class.</li>
</ul>
<ul>
    <li><tt>ActiveSupport::Dependencies::ClassCache</tt> class has been
introduced for holding references to reloadable classes.</li>
</ul>
<ul>
    <li><tt>ActiveSupport::Dependencies::Reference</tt> has been
refactored to take direct advantage of the new <tt>ClassCache</tt>.</li>
</ul>
<ul>
    <li>Backports <tt>Range#cover?</tt> as an alias for
<tt>Range#include?</tt> in Ruby 1.8.</li>
</ul>
<ul>
    <li>Added <tt>weeks_ago</tt> and <tt>prev_week</tt> to
Date/DateTime/Time.</li>
</ul>
<ul>
    <li>Added <tt>before_remove_const</tt> callback to
<tt>ActiveSupport::Dependencies.remove_unloadable_constants!</tt>.</li>
</ul>
<p>Deprecations:</p>
<ul>
    <li><tt>ActiveSupport::SecureRandom</tt> is deprecated in favor of
<tt>SecureRandom</tt> from the Ruby standard library.</li>
</ul>
<h3 id=3D"credits">10 Credits</h3>
<p>See the <a href=3D"http://contributors.rubyonrails.org/">full list of
contributors to Rails</a> for the many people who spent many hours
making Rails, the stable and robust framework it is. Kudos to all of
them.</p>
<p>Rails 3.1 Release Notes were compiled by <a
href=3D"https://github.com/vijaydev">Vijay Dev</a>.</p>

        <h3>Feedback</h3>
        <p>
          You're encouraged to help improve the quality of this guide.
        </p>
        <p>
          If you see any typos or factual errors you are confident to
          patch, please clone <a
href=3D"https://github.com/lifo/docrails">docrails</a>
          and push the change yourself. That branch of Rails has public
write access.
          Commits are still reviewed, but that happens after you've
submitted your
          contribution. <a
href=3D"https://github.com/lifo/docrails">docrails</a> is
          cross-merged with master periodically.
        </p>
        <p>
          You may also find incomplete content, or stuff that is not up
to date.
          Please do add any missing documentation for master. Check the
          <a href=3D"ruby_on_rails_guides_guidelines.html">Ruby on Rails
Guides Guidelines</a>
          for style and conventions.
        </p>
        <p>And last but not least, any kind of discussion regarding Ruby
on Rails
          documentation is very welcome in the <a
href=3D"http://groups.google.com/group/rubyonrails-docs">rubyonrails-docs=

mailing list</a>.
        </p>

-- =

Posted via http://www.ruby-forum.com/.=

In This Thread

Prev Next