apotonick / gemgem-trbrb

The Trailblazer book's example app.
http://trailblazer.to#book
137 stars 60 forks source link

Set `label:false` as default #9

Open smathy opened 9 years ago

smathy commented 9 years ago

Nice and simple :)

apotonick commented 9 years ago

Whoohoo! :heart:

smathy commented 9 years ago

You can put placeholders into the locale files so you don't have to specify that in the HAML either, you want that too?

apotonick commented 9 years ago

Awesome, please!!!!

smathy commented 9 years ago

:boom:

apotonick commented 9 years ago

I merged this into chapter-10 but now explicitly defined labels don't work anymore, for example in app/views/things/new.html.haml the

= f.input :is_author, as: :boolean, label: "I'm the author!"

doesn't render the label anymore?!?!?!

smathy commented 9 years ago

Might need to give a special wrapper that renders labels for those cases. I'm away until Wednesday, but I'll take a look then.

smathy commented 9 years ago

I tried checking out chapter-10 but got a bunch of errors relating to Trailblazer::Operation::Policy - maybe something you didn't commit/push?

apotonick commented 9 years ago

Oh sorry, yeah, I am still referencing my local trailblazer gem and the policy branch. I will merge it into master today. Thanks for your help! :heart: