code section missing line breaks

21 views
Skip to first unread message

Rajinder Yadav

unread,
Oct 29, 2010, 2:34:07 AM10/29/10
to [Rails-Docs]
I just did a pull, on page 'Getting Started with Rails' I noticed all
code sample section are messed up, missing newline? is this a css error?

I am seeing:

class CreatePosts < ActiveRecord::Migration def self.up create_table
:posts do |t| t.string :name t.string :title t.text :content
t.timestamps end end def self.down drop_table :posts end end

When I should see

class CreatePosts < ActiveRecord::Migration
def self.up
create_table :posts do |t|
t.string :name
t.string :title
t.text :content

t.timestamps
end
end

def self.down
drop_table :posts
end
end


--
Kind Regards,
Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely

GNU/Linux: 2.6.35-22-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.1

Xavier Noria

unread,
Oct 29, 2010, 5:03:57 AM10/29/10
to rubyonra...@googlegroups.com
On Fri, Oct 29, 2010 at 8:34 AM, Rajinder Yadav <devg...@gmail.com> wrote:

> I just did a pull, on page 'Getting Started with Rails' I noticed all code
> sample section are messed up, missing newline? is this a css error?
>
> I am seeing:
>
> class CreatePosts < ActiveRecord::Migration def self.up create_table :posts
> do |t| t.string :name t.string :title t.text :content t.timestamps end end
> def self.down drop_table :posts end end

I see it OK in

http://edgeguides.rubyonrails.org/getting_started.html

Which browser are you using?

Rajinder Yadav

unread,
Oct 29, 2010, 1:16:30 PM10/29/10
to rubyonra...@googlegroups.com

yes that looks good, however the one I built locally last night after
a git pull is showing everything as a big continuous line? I've done
this many times in the past followed by a

rake generate_guides

the other guide pages seem ok, I am using FF 3.6.12

I can check again when I get home, I'll do a clean clone also and report back.

Rajinder Yadav

unread,
Oct 29, 2010, 8:15:17 PM10/29/10
to rubyonra...@googlegroups.com
On 10-10-29 05:03 AM, Xavier Noria wrote:
> On Fri, Oct 29, 2010 at 8:34 AM, Rajinder Yadav<devg...@gmail.com> wrote:
>
>> I just did a pull, on page 'Getting Started with Rails' I noticed all code
>> sample section are messed up, missing newline? is this a css error?
>>
>> I am seeing:
>>
>> class CreatePosts< ActiveRecord::Migration def self.up create_table :posts
>> do |t| t.string :name t.string :title t.text :content t.timestamps end end
>> def self.down drop_table :posts end end
>
> I see it OK in
>
i deleted the output folder and generated the guide again, everything
looks ok now.

Xavier Noria

unread,
Oct 30, 2010, 3:26:27 AM10/30/10
to rubyonra...@googlegroups.com
Excellent Rajinder, thanks for the heads up.

Sent from my iPad

> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Documentation" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-do...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-docs?hl=en.
>
>

Rajinder Yadav

unread,
Oct 30, 2010, 10:34:26 PM10/30/10
to rubyonra...@googlegroups.com
On 10-10-30 03:26 AM, Xavier Noria wrote:
> Excellent Rajinder, thanks for the heads up.
>
> Sent from my iPad
>
> On Saturday, October 30, 2010, Rajinder Yadav<devg...@gmail.com> wrote:
>> On 10-10-29 05:03 AM, Xavier Noria wrote:

You're welcome Xavier!

Reply all
Reply to author
Forward
0 new messages