Permalink
Browse files

various tweaks, the sequel. Fixed that damn association bug

--HG--
branch : opml
  • Loading branch information...
1 parent fb8b208 commit 7016390c08cb477875a0a27590db80a1852a44ca Mike Travers committed Feb 27, 2010
Showing with 6 additions and 4 deletions.
  1. +3 −2 app/models/blog.rb
  2. +1 −1 app/models/user.rb
  3. +1 −0 app/views/blogs/show.html.erb
  4. +1 −1 app/views/blogs/upload_file.html.erb
View
@@ -19,8 +19,9 @@ def find_twitterers
matches = matches - ["home", "javascripts", "statuses", "favorites"]
matches = matches.map { |u| User.find_or_make(u)}
matches.uniq!
- @owners = matches
- p [title, @owners.map{|u| u.tname }]
+ # the self. seems necessary due to some Rails brokenness that I don't understand. POS!
+ self.owners = matches
+ p [title, self.owners.map{|u| u.tname }]
save!
rescue Exception => whoops
puts 'Error: ' + whoops
View
@@ -21,7 +21,7 @@ def perform
self.subscriptions.each { |blog| blog.find_twitterers }
# +++ sub name of host.
# +++ page will have to deal with unauthenticated usr.
- twitter_direct_message("Your blogs have been processed at http://twitline.net/blog/list")
+ twitter_direct_message("Your blogs have been processed at http://twitlines.net/blogs")
end
# WHOOOPS -- this needs to dm as someone...ie, the system itself. We need a twitter ID and the means to authenticate to it!
@@ -1,4 +1,5 @@
<h1>Subscribed blogs</h1>
+<%= link_to('Upload blog list', :action => :upload) %>
<table>
<tr>
<th>Blog</th>
@@ -3,5 +3,5 @@
<p/>
Click <%= link_to('here', :action => :show) -%> to see twitterers (warning: slow).
<p/>
-Click <%= link_to('here', :action => :delayed_show) -%> and we'll do the computation in batch mode and send you a Twitter direct mesage when done. I'll have to add twit__lines to your friends list to do this -- don't worry, you won't get a lot of junk.
+Click <%= link_to('here', :action => :delayed_show) -%> and we'll do the computation in batch mode and send you a Twitter direct mesage when done. I'll have to add twit__lines to your friends list to do this -- don't worry, you won't see a lot of junk tweets from this.

0 comments on commit 7016390

Please sign in to comment.