Skip to content

Commit

Permalink
july 4th debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ddd1600 committed Jul 9, 2012
1 parent 92183c5 commit 520f005
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'

gem 'rails', '3.2.6'

gem 'simple_twitter', '1.0.1'
gem 'simple_twitter', '1.0.3'

gem 'css3buttons', '0.9.5'

Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -94,7 +94,7 @@ GEM
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
simple_twitter (1.0.1)
simple_twitter (1.0.3)
httparty (~> 0.8.3)
sprockets (2.1.3)
hike (~> 1.2)
Expand Down Expand Up @@ -123,7 +123,7 @@ DEPENDENCIES
less
rails (= 3.2.6)
sass-rails (~> 3.2.3)
simple_twitter (= 1.0.1)
simple_twitter (= 1.0.3)
sqlite3
therubyracer
uglifier (>= 1.0.3)
2 changes: 1 addition & 1 deletion app/controllers/searches_controller.rb
Expand Up @@ -10,7 +10,7 @@ def show
instance = SimpleTwitter::Search.new
@results = instance.search(params[:q])

@rpp = instance.results_per_page
##### @rpp = instance.results_per_page

# instance.results_per_page = params[:results_per_page]

Expand Down
5 changes: 3 additions & 2 deletions app/views/searches/show.html.erb
Expand Up @@ -22,7 +22,7 @@
<% i = 0 %>
<% @results.each do |r| %>
<tr class="tweets">

<script>
$("td.status").click(function(){
window.location = "http://www.twitter.com/id/status/<%= r.page_id %>";
Expand All @@ -35,9 +35,10 @@
});
</script>


<td class="user"><img src="<%= r.img_url %>"></td>

<td class="user"><strong><%= r.screen_name %></strong></td>
<a href="http://www.twitter.com/<%= r.screen_name %>"><td class="user"><strong><%= r.screen_name %></strong></td></a>

<td class="user"><%= r.real_name %></td>

Expand Down

0 comments on commit 520f005

Please sign in to comment.