# Markaby and rails 1.2

**URL:** <https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638>\
**Category:** Rails\
**Created:** [February 6, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638 "2007-02-06T17:26:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [February 6, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638/1 "2007-02-06T17:26:41Z")

</div>

Hi,

has anyone used Markaby and Rails 1.2 successfully together?

Regards  
Peter

---

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [February 6, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638/2 "2007-02-06T18:03:45Z")

</div>

I tried it when 1.2 was still in development and ran into just enough  
issues to keep me off it. I did create Elemental (a plugin) to help  
make rhtml a little cleaner though. If you’re interested in it:

[http://blog.dangosaur.us/elemental/](http://blog.dangosaur.us/elemental/)

repo:  
[http://svn.dangosaur.us/svn/elemental/](http://svn.dangosaur.us/svn/elemental/)

Jamie

---

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [February 6, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638/3 "2007-02-06T20:06:56Z")

</div>

Using it here… works just fine, although we were getting deprecation  
warnings for @session.

Switching to just session (the helper) didn’t work right off the bat  
either. Figured out that that’s because a markaby builder doesn’t get  
the usual rhtml helpers automatically.

There’s a patch on the markaby trac site to fix the problem, but for  
some reason it’s not in the markaby repository.

So, for now, we’re doing the alternate route: we include an empty rhtml  
file in our main layout. This causes all the rhtml goodies to be made  
available to the layout, and therefore the templates too.

If any markaby devs are lurking, it’d be nice to get that patch into  
svn!

b

---

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [February 6, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638/4 "2007-02-06T20:59:06Z")

</div>

removed\_email\_address@domain.invalid wrote:

> have you tried [haml] and what’s your opinion towards it?

Nope… markaby seemed cleaner, more elegant.

b

---

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [February 6, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638/5 "2007-02-06T20:46:04Z")

</div>

have you tried [haml] and what’s your opinion towards it?

---

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [February 6, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/markaby-and-rails-1-2/84638/6 "2007-02-06T21:04:06Z")

</div>

well, thanks a lot for your help and happy railing alltogether 🙂

2007/2/6, Ben M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
