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
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:125 in "===" | |
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:125 in "split" | |
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:211 in "parse" | |
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:747 in "parse" | |
/vendor/bundle/ruby/2.1.0/gems/carrierwave_direct-0.0.14/lib/carrierwave_direct/uploader.rb:64 in "key" | |
/vendor/bundle/ruby/2.1.0/gems/carrierwave_direct-0.0.14/lib/carrierwave_direct/uploader.rb:81 in "has_key?" | |
/vendor/bundle/ruby/2.1.0/gems/carrierwave_direct-0.0.14/lib/carrierwave_direct/mount.rb:33 in "has_upload_upload?" | |
/app/models/document.rb:27 in "set_name" | |
/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.7.1/lib/active_support/callbacks.rb:424 in "block in make_lambda" | |
/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.7.1/lib/active_support/callbacks.rb:160 in "call" |
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 window.KittenManager | |
actions: | |
hunting: | |
state: false | |
time_interval: null | |
parchmenting: | |
state: false | |
time_interval: null | |
manuscripting: | |
state: false |
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
<% if @post.errors.any? %> | |
var errors = ''; | |
<% @comment.errors.full_messages.each do |error| %> | |
errors.append("<%= escape_javascript( error ) %>\n"); | |
<% end %> | |
alert(errors); | |
<% else %> | |
$('#posts').prepend('<%=j render 'chapters/posts/post', {:post => @post} %>') | |
<% 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
<% if @post.errors.any? %> | |
var errors = ''; | |
<% @comment.errors.full_messages.each do |error| %> | |
errors.append("<%= escape_javascript( error ) %>\n"); | |
<% end %> | |
alert(errors); | |
<% else %> | |
$('#posts').prepend('<%=j render 'chapters/posts/post', {:post => @post} %>') | |
<% 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
class Conversation < ActiveRecord::Base | |
has_many :messages | |
has_many :participants | |
has_many :users, :through => :participants | |
accepts_nested_attributes_for :messages | |
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
# config/initializers/devise.rb | |
config.mailer = DeviseMailer |
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
@posts = @profile.posts # [] | |
@profile.posts.build | |
@posts # array containing a single post |
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
# How to get just the comment routes, and not the post routes | |
resources :posts do | |
resources :comments | |
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
# How to get just the comment routes, and not the post routes | |
resources :posts do | |
resources :comments | |
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
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
:address => "smtp.gmail.com", | |
:port => 587, | |
:domain => 'gmail.com', | |
:user_name => 'ommitted!', | |
:password => 'ommitted!', | |
:authentication => 'plain', | |
:enable_starttls_auto => true | |
} |
OlderNewer