Skip to content

Instantly share code, notes, and snippets.

How does this work?
edit_user_event_url failed to generate from {:controller=>"events", :user_id=>#<Event id: 3, title: "April HTHH", date_of_event: "2009-04-30 05:00:00", url: "http://hthh.org", address: "Zanders on State", created_at: "2009-04-15 03:10:39", updated_at: "2009-04-15 03:10:39", user_id: 3>, :action=>"edit"}, expected: {:controller=>"events", :action=>"edit"}, diff: {:user_id=>#<Event id: 3, title: "April HTHH", date_of_event: "2009-04-30 05:00:00", url: "http://hthh.org", address: "Zanders on State", created_at: "2009-04-15 03:10:39", updated_at: "2009-04-15 03:10:39", user_id: 3>}
<% for event in @events %>
<tr>
<td><%=h event.title %></td>
<td><%=h event.date_of_event.to_s(:long) %></td>
<td><%= link_to event.url, event.url %></td>
<td><%=h event.address %></td>
<td><%= link_to 'Show', event %></td>
<td><%= link_to 'Edit', edit_user_event_path(event) %></td>
<td><%= link_to 'Delete', event, :confirm => 'Are you sure?', :method => :delete %></td>
philip-crawfords-computer:/Development/imbyinfo dude$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: app/controllers/tags_controller.rb
# modified: app/controllers/users_controller.rb
# modified: app/models/event.rb
# modified: app/models/gig.rb
@wiscoDude
wiscoDude / gist:3636075
Created September 5, 2012 12:49
TwiML.rb
# build up a response
response = Twilio::TwiML::Response.new do |r|
r.Say 'Hello, please wait.', :voice => 'woman'
r.Dial :callerId => '+14159992222' do |d|
d.Conference 'myfirstconference'
end
end