Skip to content

Instantly share code, notes, and snippets.

View vocino's full-sized avatar

Vocino vocino

View GitHub Profile
def sendmail
@attendee = Attendee.find(params[:id])
AttendeeMailer.deliver_invite_email(@attendee)
end
<td><%= link_to 'Email', attendee, :action => :sendmail %> |</td>
.main_menu {
text-align: center;
margin: 0 0 30px;
}
.main_menu ul {
margin: 0;
padding: 0;
}
<div class="main_menu">
<ul>
<li class="menu_left menu_active">Ask for something</li>
<li class="menu_right"><a href="http://imaneed.com#" id="interests_form_link">Help with something</a></li>
</ul>
</div>
<div id="wrapform" class="group">
<div id="form" class="container group">
<div id="phone" class="col_12">
<% form_for(@contact_method, :url => contact_methods_path) do |f| %>
<%= errors_for @contact_method, :username_or_number %>
<%= label_tag :mobile_phone_number %><br>
Started GET "/" for 127.0.0.1 at Mon Sep 20 00:36:25 -0400 2010
Processing by UsersController#new as HTML
Area Load (28.8ms) SELECT `areas`.* FROM `areas`
DEPRECATION WARNING: <% %> style block helpers are deprecated. Please use <%= %>. (called from _app_views_users_new_html_erb__1813113383_2182667200_0 at /Users/Travis/Development/Savor-Tonight/app/views/users/new.html.erb:2)
Rendered pages/_flash.html.erb (0.5ms)
Rendered users/new.html.erb within layouts/application (19.5ms)
Completed 200 OK in 154ms (Views: 26.0ms | ActiveRecord: 32.4ms)
Started POST "/users" for 127.0.0.1 at Mon Sep 20 00:36:39 -0400 2010
@vocino
vocino / database.yml
Last active December 25, 2015 03:38
I kept losing the links for these so here they are. Database.yml examples for MySQL, PosgreSQL, and SQLite.
development:
adapter:
database: _development
username:
password:
sochost:
test:
adapter:
database: _test
username:
@vocino
vocino / Preferences.sublime-settings
Created October 26, 2013 16:20
Sensible Sublime Text settings for Rails development and more.
{
"color_scheme": "Packages/User/IR_Black.tmTheme",
"font_face": "Menlo",
"ignored_packages":
[
"Vintage"
],
"tabsize": 2,
"theme": "Soda Dark 3.sublime-theme",
@vocino
vocino / No-Child-Left-Behind.md
Last active December 28, 2015 06:39
A Pen by Travis Vocino.

No Child Left Behind

Having the last word of your titles wrap looks bad. Add a simple nowrap class to give your type some class.

A Pen by Travis Vocino on CodePen.

License.

@vocino
vocino / font-weight.scss
Created November 14, 2013 23:39
Define your font weights in Sass variables.
$weight-light : 300;
$weight-book : 400;
$weight-medium : 500;
$weight-semibold : 600;
$weight-bold : 700:
$weight-black : 900;
@vocino
vocino / SassMeister-input.scss
Created November 18, 2013 16:22
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
// _variables.scss
$mobile: new-breakpoint(max-width 568px 4);