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
namespace "site" do | |
match 'branding' => 'account#branding', :as => 'account_branding' | |
post 'branding' => 'account#save_branding', :as => 'account_branding' | |
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
Not sure what's the best schema I should use in this situation. | |
I want: | |
------- | |
- Users should be able to register an account, with a subdomain | |
- Subdomain owners can invite other users to access the account | |
- Users should be able to own multiple subdomains, and belong to multiple subdomains | |
- Users will access their account through their subdomain (e.g. cooluser.myapp.com) |
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
%h2 Post Your Job | |
%ol | |
%li Listing Details | |
%li Company Details | |
%li Preview Your Listing | |
%li Finish | |
- form_for :job, :url => { :action => :create } do |f| | |
/ = f.error_messages | |
/ = render "jobs/shared/#{@job.current_step}", :f => f |
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
=> Booting WEBrick | |
=> Rails 3.0.8 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2011-07-24 21:52:53] INFO WEBrick 1.3.1 | |
[2011-07-24 21:52:53] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.7.0] | |
[2011-07-24 21:52:53] INFO WEBrick::HTTPServer#start: pid=33000 port=3000 | |
Started GET "/" for 127.0.0.1 at 2011-07-24 21:53:00 -0400 |
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
# jobs_controller | |
class JobsController < ApplicationController | |
def new | |
@job = Job.new | |
end | |
def create | |
@job = Job.new(params[:job]) | |
@job.current_step = session[:listing_step] | |
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
// controllers/components/custom_acl.php | |
App::import('Component', 'Acl'); | |
class CustomAclComponent extends AclComponent { | |
public function example() { | |
// override the function | |
} | |
} | |
Then in your app_controller |
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
http://maps.google.com/maps/api/staticmap?center=2312+gulf+to+bay+blvd+clearwater+fl&zoom=17&size=400x400&sensor=false |
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
ALTER TABLE `table_name` AUTO_INCREMENT = xxxxx; |
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
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* dZero image library | |
* | |
* @package dZero Image Library | |
* @category Image Manipulation | |
* @author Daniel Nolan ([email protected]) & Brandon Cordell ([email protected]) | |
* @copyright Copyright (c) 2009 dZero Web Design & Development. | |
* @link http://dzerodesign.com | |
* @version 1.0 |
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
<?php | |
if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* dZero authentication library | |
* | |
* @package dZero Auth Library | |
* @category authentication | |
* @author Daniel Nolan ([email protected]) & Brandon Cordell ([email protected]) | |
* @copyright Copyright (c) 2009 dZero Web Design & Development. |