Comments on: A brief introduction to Ruby, Sinatra, and Haml https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/ ruby, ubuntu, etc Thu, 17 Mar 2016 20:35:40 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Max https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-1479 Max Mon, 31 Dec 2012 18:17:53 +0000 https://blog.maxaller.name/?p=251#comment-1479 Awesome :) Yeah, spacing is certainly critical in HAML. So after experimenting a little, I discovered that if you have a submit button that isn’t in a form, clicking on it does nothing. not even redirecting to the current page (like a submit button in a form tag with no attributes would do). So I suspect that’s what happened here. You might have better luck copy-pasting if you hit the “view raw” link in the corner of the gists, or you can clone the gist straight into your VM by clicking on the filename link and then “Clone this gist” in the left hand side, like so: “git clone https://gist.github.com/284715.git“. You may need to sudo apt-get install git-core if you’re on Ubuntu/Linux Mint/Debian and don’t have git installed yet.

Happy Sinatra-ing!

]]>
By: Zach https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-1478 Zach Mon, 31 Dec 2012 16:50:09 +0000 https://blog.maxaller.name/?p=251#comment-1478 Got it!!! A buddy gave me a hint, spacing is critical in HAML! I was using a VM and copying over a lot of code by hand. Since my HAML spacing was off the form did not submit. Black magic…

]]>
By: Zach https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-1477 Zach Mon, 31 Dec 2012 15:35:16 +0000 https://blog.maxaller.name/?p=251#comment-1477 It sounds all well and good, but when I include the form, I click submit and nothing happens. I am using ruby 1.9.2, Sinatra 1.3.2, haml 3.1.7; am I missing something basic?

]]>
By: A homemade Sinatra based JUnit Results UI | AutoTestGeek https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-1219 A homemade Sinatra based JUnit Results UI | AutoTestGeek Sun, 26 Aug 2012 11:37:28 +0000 https://blog.maxaller.name/?p=251#comment-1219 [...] https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/ ShareTwitterEmailLike this:LikeBe the first to like this. This entry was posted in Uncategorized. Bookmark the permalink. ← Fitnesse and Selenium Tutorial [...]

]]>
By: Max https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-857 Max Sat, 03 Sep 2011 03:37:05 +0000 https://blog.maxaller.name/?p=251#comment-857 I haven’t use DataMapper in quite a while — I’m mainly a Sequel guy, and…I don’t know a lot about PostgreSQL either. Sorry, you’re on your own.

]]>
By: rtmex https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-850 rtmex Fri, 26 Aug 2011 17:40:42 +0000 https://blog.maxaller.name/?p=251#comment-850 What about a CRUD app example using Datamapper and PostgreSQL?

]]>
By: Ankit https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-711 Ankit Mon, 21 Mar 2011 08:10:37 +0000 https://blog.maxaller.name/?p=251#comment-711 Thanks a lot.

You have made the start so easy.

Keep Writing

]]>
By: Max https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-685 Max Tue, 22 Feb 2011 22:30:14 +0000 https://blog.maxaller.name/?p=251#comment-685 Alright alright, that’s two people who want a narrow format. It’s just the built in template! I guess I’ll have to add some CSS of my own :) Or at least make it an option.

]]>
By: chris "cmms" kluis https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-684 chris "cmms" kluis Tue, 22 Feb 2011 19:49:19 +0000 https://blog.maxaller.name/?p=251#comment-684 FYI Max – maximum readability is around 60 characters per line.

http://baymard.com/blog/line-length-readability

]]>
By: Max https://blog.maxaller.name/2010/01/a-brief-introduction-to-ruby-sinatra-and-haml/comment-page-1/#comment-658 Max Sun, 30 Jan 2011 17:41:02 +0000 https://blog.maxaller.name/?p=251#comment-658 Yeah…though you can get syntax highlighting for haml for gedit, and redcar comes with it by default. It’s not non-existent, but not nearly as widespread as one might want.

]]>