This file contains 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
<%= form_for @owner do |form| %> | |
<%= form.text_field :username %> | |
<%= form.password_field :password %> | |
<%= form.submit %> | |
<% end %> |
This file contains 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
<%= link_to "Remove", [:admin, owner], :confirm => "Are you sure you wish to delete #{owner.username}?", :method => :delete %> | |
ActionController::InvalidAuthenticityToken in Admin/ownersController#destroy |
This file contains 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
$(document).ready(function() { | |
$("div.fade").fadeTo(10000, 1).fadeOut("slow"); | |
/* Copy a row, change the input field names and append to table */ | |
$("a.add-row").click(function(e) { | |
e.preventDefault(); | |
var copy_row = $("table").find("tbody tr").first().clone() | |
var existing_rows = parseInt($("table").find("tbody tr").length) |
This file contains 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
<form class="form" method="post" action="/admin/sponsors/update/4c0c3c6dd478e11b63000003"><input type="hidden" value="put" name="_method" /> | |
<div class="group"> | |
<label for="sponsor_name">Name: </label> | |
<input type="text" value="test" class="text_field" name="sponsor[name]" id="sponsor_name" /> | |
<span class="description">Ex: a simple text</span> | |
</div> | |
<div class="group"> | |
<label for="sponsor_url">Url: </label> | |
<input type="text" value="test" class="text_field" name="sponsor[url]" id="sponsor_url" /> | |
<span class="description">Ex: a simple text</span> |
This file contains 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 Site | |
include Mongoid::Document | |
include Mongoid::Timestamps # adds created_at and updated_at fields | |
# field <name>, :type => <type>, :default => <value> | |
field :name, :type => String | |
field :url, :type => String | |
embedded_in :sponsor, :inverse_of => :sites |
This file contains 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
# m h dom mon dow command | |
*/2 * * * * /bin/bash /home/andy/public_html/mmawrapup.com/mmawrapup/node/dofeeds.sh | |
This file contains 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
SyntaxError at /admin/models/create | |
compile error /Users/andy/Documents/Apps/models.securejoin.com/app/views/mailers/model_register/registration_email.haml:3: syntax error, unexpected ',', expecting ')' ..._true_false(("Hello #{:name}", = "Welcome to the site." ^ |
This file contains 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 Domain | |
include MongoMapper::Document | |
# key <name>, <type> | |
key :domain, String, :required => true, :index => true | |
key :rate, Integer | |
key :max, Integer | |
key :deferred, Boolean, :index => true | |
timestamps! | |
This file contains 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 { | |
passenger_root /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15; | |
passenger_ruby /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby; | |
passenger_log_level 1; | |
include mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
This file contains 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
ree-1.8.7-head > feed = Feed.first | |
=> #<Feed favicon: "", _keywords: #<Set: {"cagepotato.com"}>, slug: "cage-potato", created_at: Sun, 18 Jul 2010 03:15:01 UTC +00:00, etag: nil, title: "CagePotato.com", updated_at: Sun, 18 Jul 2010 13:36:39 UTC +00:00, auto_tweet: true, feed_url: "http://www.cagepotato.com/rss.xml", feed_format: "rss", url: "http://www.cagepotato.com", _id: BSON::ObjectID('4c4271b4acbef23392000006'), post_ids: [BSON::ObjectID('4c4272ddacbef23427000001'), BSON::ObjectID('4c4272ddacbef23427000002'), BSON::ObjectID('4c4272ddacbef23427000003'), BSON::ObjectID('4c4272ddacbef23427000004'), BSON::ObjectID('4c4272ddacbef23427000005'), BSON::ObjectID('4c4272ddacbef23427000006'), BSON::ObjectID('4c4272ddacbef23427000007'), BSON::ObjectID('4c4272ddacbef23427000008'), BSON::ObjectID('4c4272ddacbef23427000009'), BSON::ObjectID('4c4272deacbef2342700000a')], last_modified: Sat, 17 Jul 2010, active: true> | |
ree-1.8.7-head > feed.to_feed | |
=> #<Feedzirra::Parser::RSS:0x103dffa58 @title="CagePotato.com", @feed_ |
OlderNewer