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
| Uncaught SyntaxError: Unexpected identifier | |
| d.d.extend.globalEval | |
| d.ajaxSetup.converters.text script | |
| bQj | |
| v | |
| d.support.ajax.d.ajaxTransport.send.c |
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
| $("#video_485").parent().parent().children(".topic_holder").html('<div class ="topic" id ="topicable_267"><a href="#" class="topic_link">hard rap</a><a href="/topicables/267" class="topic_delete" data-method="delete" data-remote="true" rel="nofollow">x</a></div><div class ="topic" id ="topicable_268"><a href="#" class="topic_link">eedefva</a><a href="/topicables/268" class="topic_delete" data-method="delete" data-remote="true" rel="nofollow">x</a></div><div class ="topic" id ="topicable_269"><a href="#" class="topic_link">sassaas</a><a href="/topicables/269" class="topic_delete" data-method="delete" data-remote="true" rel="nofollow">x</a></div><div class ="topic" id ="topicable_270"><a href="#" class="topic_link">adsdsasd</a><a href="/topicables/270" class="topic_delete" data-method="delete" data-remote="true" rel="nofollow">x</a></div>'); | |
| $(".edit_video")[0].reset(); | |
| $("#edit_topics_link").text(Edit Topics); |
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
| $("#edit_topics_link").text("<%= (@video.topics.count == 0) ? 'Add descriptive topics so people can find your song!' : 'Edit Topics' %>"); |
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
| def edit | |
| @video = current_user.videos.find(params[:id]) | |
| 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
| #Link in video show view | |
| <%= link_to "Enable Commenting", new_comment_title_path(:format => :js), :id => 'enable_commenting_link', :class => 'edit' %> | |
| #comment_titles/new.js.erb | |
| $("<%= escape_javscript render(:file => 'comment_titles/new.html.erb') %>").insertAfter('#enable_commenting_link'); | |
| $('#enable_commenting_link').hide(); | |
| #comment_titles/new.html.erb |
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
| #application_helper | |
| def setup_video(video) | |
| returning(video) do |v| | |
| v.comment_titles.build if v.comment_titles.empty? | |
| end | |
| 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
| NoMethodError in Videos#show | |
| Showing /rubyprograms/dreamstill/app/views/videos/show.html.erb where line #26 raised: | |
| undefined method `new_video_comment_title_path' for #<#<Class:0x1030d0c60>:0x1030c9b68> |
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
| <a href="#" onclick="add_fields(this, &quot;comment_titles&quot;, &quot;&lt;p class=\&quot;fields\&quot;&gt;\n&lt;label for=\&quot;video_comment_titles_attributes_new_comment_titles_title\&quot;&gt;Comment Title:&lt;\/label&gt; \n&lt;input id=\&quot;video_comment_titles_attributes_new_comment_titles_title\&quot; name=\&quot;video[comment_titles_attributes][new_comment_titles][title]\&quot; size=\&quot;30\&quot; type=\&quot;text\&quot; /&gt;\n&lt;input id=\&quot;video_comment_titles_attributes_new_comment_titles__destroy\&quot; name=\&quot;video[comment_titles_attributes][new_comment_titles][_destroy]\&quot; type=\&quot;hidden\&quot; value=\&quot;false\&quot; /&gt;&lt;a href=\&quot;#\&quot; onclick=\&quot;remove_fields(this); return false;\&quot;&gt;remove&lt;\/a&gt;\n&lt;input id=\&quot;add_comment_title\&quot; name=\&quot;commit\&a |
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
| link_to_function(name, h("add_fields(this, \"#{association}\", \"#{escape_javascript(fields)}\")")) |
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
| <%= simple_form_for([@video, @video.comments.new]) do |f| %> | |
| <%= f.association :comment_title, :label => "Comment Title:", :include_blank => false %> | |
| <%= f.input :body, :label => false, :placeholder => "Post a comment." %> | |
| <%= f.button :submit, :value => "Post" %> | |
| <% end %> |