Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created September 28, 2010 10:46
Show Gist options
  • Save nicolasblanco/600794 to your computer and use it in GitHub Desktop.
Save nicolasblanco/600794 to your computer and use it in GitHub Desktop.
[$]nicolas@nicolas-desktop:/home/nicolas/projects/mygreatnewapp-> cat app/views/posts/new.html.haml
.block
.secondary-navigation
%ul.wat-cf
%li.first= link_to "#{t("web-app-theme.list", :default => "List")}", posts_path
%li.active= link_to "#{t("web-app-theme.new", :default => "New")}", new_post_path
.content
%h2.title
= t("web-app-theme.new", :default => "New")
Post
.inner
= form_for :post, :url => posts_path, :html => { :class => :form } do |f|
= render :partial => "form", :locals => {:f => f}
- content_for :sidebar, render(:partial => 'sidebar')
[$]nicolas@nicolas-desktop:/home/nicolas/projects/mygreatnewapp-> cat app/views/posts/edit.html.haml
.block
.secondary-navigation
%ul.wat-cf
%li.first= link_to "#{t("web-app-theme.list", :default => "List")}", posts_path
%li= link_to "#{t("web-app-theme.new", :default => "New")}", new_post_path
%li.active= link_to "#{t("web-app-theme.edit", :default => "Edit")}", edit_post_path
.content
%h2.title
= t("web-app-theme.edit", :default => "Edit")
Post
.inner
= form_for @post, :url => post_path(@post), :html => { :class => :form } do |f|
= render :partial => "form", :locals => {:f => f}
- content_for :sidebar, render(:partial => 'sidebar')
[$]nicolas@nicolas-desktop:/home/nicolas/projects/mygreatnewapp-> bundle install
Fetching git://github.com/slainer68/web-app-theme.git
remote: Counting objects: 1519, done.
remote: Compressing objects: 100% (641/641), done.
remote: Total 1519 (delta 743), reused 1507 (delta 740)
Receiving objects: 100% (1519/1519), 236.59 KiB | 106 KiB/s, done.
Resolving deltas: 100% (743/743), done.
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.0)
Using builder (2.1.2)
Using i18n (0.4.1)
Using activemodel (3.0.0)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.0.0)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.8)
Using mail (2.2.6.1)
Using actionmailer (3.0.0)
Using arel (1.0.1)
Using activerecord (3.0.0)
Using activeresource (3.0.0)
Using bundler (1.0.0)
Using haml (3.0.18)
Using has_scope (0.5.0)
Using hpricot (0.8.2)
Using responders (0.6.2)
Using inherited_resources (1.1.2)
Using thor (0.14.2)
Using railties (3.0.0)
Using rails (3.0.0)
Using sexp_processor (3.0.5)
Using ruby_parser (2.0.5)
Using sqlite3-ruby (1.3.1)
Using web-app-theme (0.6.1) from git://github.com/slainer68/web-app-theme.git (at master)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Your bundle was installed to `/home/nicolas/.rvm/gems/ree-1.8.7-2010.02`
[$]nicolas@nicolas-desktop:/home/nicolas/projects/mygreatnewapp-> rails g web_app_theme:themed Posts --engine=haml
identical app/views/posts/show.html.haml
identical app/views/posts/_form.html.haml
identical app/views/posts/index.html.haml
conflict app/views/posts/new.html.haml
Overwrite /home/nicolas/projects/mygreatnewapp/app/views/posts/new.html.haml? (enter "h" for help) [Ynaqdh] Y
force app/views/posts/new.html.haml
conflict app/views/posts/edit.html.haml
Overwrite /home/nicolas/projects/mygreatnewapp/app/views/posts/edit.html.haml? (enter "h" for help) [Ynaqdh] Y
force app/views/posts/edit.html.haml
identical app/views/posts/_sidebar.html.haml
[$]nicolas@nicolas-desktop:/home/nicolas/projects/mygreatnewapp-> cat app/views/posts/new.html.haml
.block
.secondary-navigation
%ul.wat-cf
%li.first= link_to "#{t("web-app-theme.list", :default => "List")}", posts_path
%li.active= link_to "#{t("web-app-theme.new", :default => "New")}", new_post_path
.content
%h2.title
= t("web-app-theme.new", :default => "New")
Post
.inner
= form_for :post, :url => posts_path, :html => { :class => :form } do |f|
= render :partial => "form", :locals => {:f => f}
- content_for :sidebar, render(:partial => 'sidebar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment