public
Created

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
@@new
form action="/riddle" method="POST"
label for="title" Title
input#title name="riddle[title]" value="#{@riddle.title}"
select name="riddle[html_engine]"
option value="markdown" HTML
option value="markdown" MARKDOWN
option value="textile" TEXTILE
option value="haml" HAML
option value="slim" SLIM
option value="erb" ERB
option value="liquid" LIQUID
option value="markaby" MARKABY
textarea#html cols=60 rows=10 name="riddle[html]"=@riddle.html
select name="riddle[css_engine]"
option value="css" CSS
option value="scss" SCSS
option value="sass" SASS
option value="less" LESS
textarea#css cols=60 rows=10 name="riddle[css]"=@riddle.css
select name="riddle[js_engine]"
option value="javascript" JAVASCRIPT
option value="coffee" COFFEESCRIPT
textarea#js cols=60 rows=10 name="riddle[js]"=@riddle.js
input.button type="submit" value="Save Riddle"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.