Skip to content

Commit

Permalink
removed everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepan Boltalin committed Feb 8, 2012
1 parent 391fff5 commit 2375d9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 37 deletions.
2 changes: 1 addition & 1 deletion app/controllers/plots_controller.rb
Expand Up @@ -14,7 +14,7 @@ def index
# GET /plots/1.json
def show
@plot = Plot.find(params[:id])
if @plot.sentiment_value.nil?
if @plot.timepoint.nil?
flash[:notice] = "P ULLR IS P ULLING"
end
string = @plot.name
Expand Down
31 changes: 0 additions & 31 deletions app/views/plots/show.html.erb
Expand Up @@ -15,37 +15,6 @@
<i><%= @plot.name %></i>
</p>

<p>
<b>Links:</b>

<% @plot.youtubeid.split(' ').each do |y| %>
<font color="red"> <%= y %> </font>||
<% end %>
</p>

<p>
<b>Plot words:</b><br />


<% @words.split(' ').each do |w| %>
<font color="blue"><%= w %></font>|
<% end %>

</p>




</p>
<p>
<b>Youtubes:</b><br />
<% @plot.content.split(' ').each do |p| %>
<%= raw(p) %>
<% end %>
</p>


<p>
<% if !@plot.timepoint.nil? %>
Expand Down
12 changes: 7 additions & 5 deletions app/workers/plot_creator.rb
Expand Up @@ -17,12 +17,14 @@ def self.perform(plot_id)
end
end
youtubeids = Plot.pull_youtubeids_with_timecodes_with_hash(youtubeids, hash_of_search)
@plot.youtubeid = (Plot.create_youtubelinks(youtubeids))
@plot.content = (Plot.create_iframes(youtubeids))
@plot.chosen_word = words
# @plot.youtubeid = (Plot.create_youtubelinks(youtubeids))
# @plot.content = (Plot.create_iframes(youtubeids))
# @plot.chosen_word = words
str = youtubeids.gsub(/\n/,'')
str = youtubeids.gsub(/-/,'')
@plot.timepoint = youtubeids
@plot.sentiment_value = Plot.find_sentiment_value(words)
@plot.save
# @plot.sentiment_value = Plot.find_sentiment_value(words)
# @plot.save
end
end

0 comments on commit 2375d9c

Please sign in to comment.