This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. Create dirs for unpacking your source code and installing your apps | |
| mkdir $HOME/src | |
| mkdir $HOME/apps | |
| # 2. Install the latest version of git | |
| cd $HOME/src | |
| wget http://kernel.org/pub/software/scm/git/git-1.6.2.tar.gz | |
| tar zxvf git-1.6.2.tar.gz | |
| cd git-1.6.2 | |
| ./configure --prefix=$HOME/apps NO_MMAP=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # load rubygems, wirble and utility_belt | |
| require 'rubygems' | |
| require 'wirble' | |
| require 'utility_belt' | |
| require 'irb/completion' | |
| require 'pp' | |
| # load wirble | |
| Wirble.init | |
| Wirble.colorize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When new line link is pressed, I get a new line to appear in my table... but the attributes for the new line are always the same as the first (invoice[line_attributes][new_1]) | |
| What am I missing? | |
| ## app/views/invoices/new.html.haml | |
| - form_for @invoice do |invoice_form| | |
| = invoice_form.error_messages | |
| = render :partial => 'invoice', :object => invoice_form | |
| .field | |
| = invoice_form.submit 'Save Invoice' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # App Template | |
| # By Matt Polito | |
| # Link to local copy of edge rails | |
| rake('rails:freeze:gems') | |
| # Delete unnecessary files | |
| run "rm README" | |
| run "rm public/index.html" | |
| run "rm public/favicon.ico" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def new | |
| @product_request = ProductRequest.new | |
| @ps = ProductSpecification.find(params[:spec]) | |
| @product_request.height = @ps.height | |
| @product_request.width = @ps.width | |
| respond_to do |format| | |
| format.html # new.html.erb | |
| format.xml { render :xml => @product_request } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PagesController < ApplicationController | |
| before_filter :login_required, :except => [ :show ] | |
| # GET /pages | |
| # GET /pages.xml | |
| def index | |
| @pages = Page.find(:all) | |
| respond_to do |format| | |
| format.html # index.html.erb |
NewerOlder