similar to: using flickr.rb

Displaying 20 results from an estimated 7000 matches similar to: "using flickr.rb"

2006 Jul 19
1
flickr.rb error
hi all, i am trying to put flickr on my ruby app using the famous "Putting flickr on Rails" tutorial...i followed all the steps what was given there...but the followoing error always come... Error Message: NoMethodError in FlickrController#search private method `gsub'' called for 24:FixnumRAILS_ROOT: C:/rails/flickr/config/.. Application Trace | Framework Trace | Full
2006 Mar 07
6
Flickr - Tutorial
So I''ve pretty much followed the steps in the video tutorial on RoR.com for creating a small app, to search for photos on flickr.com - all is good, and works as intended to.. How would I go about adding validation, so if no tags are specified it will fail. I know I have to use validates_presence_of :tags - but not in the controller.. so I tried to generate a model called
2006 Apr 30
8
format numbers as words
Does anyone know if there is a function available which can format any entered number as words? eg: ''1234'' would be ''One Thousand Two Hundred and Thirty Four'' In the past, I would have said this is a tall order, but from what I''ve seen with playing with rails for a short time, I don''t know what to expect. :) Thanks for any help, Damien
2006 Apr 13
2
Automatic finder
It looks rails automatically creates a "finder" method on models that have a "belongs_to". So I tried this in the console: c = Category.find(2) chunks = Chunk.find_by_category(c) chunks is always returned as an empty array. When I know have some chunks with a category_id of 2. Should the find_by_category do what I think it should be doing or am I completely off base?
2006 Jul 19
3
Flickr.rb - Limiting photo results!
I''m returning my photos to my site, but I''m want to limit the result to like 5 photos or something. Right now, it''s returning all of my public photos. What I''m attempting is to do some sort of counter loop in the view to limit this, but it seems like the API would have a count or a limit option. Does anyone know how to limit the photos returned by
2006 Jul 20
1
Installing flickr.rb on Dreamhost Error - HELP
I tried to install flickr.rb on my Dreamhost server, and I got an error. This is what I did to install it: $> gem install flickr I''m not sure if there are any other parameters... does anyone know why I got errors when trying to install this? What does it mean when it asks "Install required dependency xml-simple?" By the way, here''s the results: [myserver]$
2006 Feb 22
5
[OT] Apache rewrite stuff...
Hi all, a little off topic, but was wondering what the best way is to re-write incoming requests so that they all end up at the same domain. For example, if I had: my_domain.net my_domain.com my_domain.org Whats the best way to map/redirect all of these to www.my_domain.com ? I know its possible, just not sure what to add for rules/virtual hosts in my apache config. Thanks for the help! -Nick
2006 Apr 12
2
Tracking page hits
Hello all, I am developing an online store and would like to keep track of how many times each product was viewed. While I can keep track of page hits using something like webalizer, this won''t really work (I don''t think) as the pages are not going to be static. Has anyone else implemented this and if so could you please point me in the right direction. A potential solution
2007 Jan 15
1
Flickr.rb - displaying tags
Maybe I''m having a "slow day" but I can''t for the life of me figure out how to print a photo''s tags using the flickr gem (flickr.rb). Consider this: <% @photos.each do |photo| %> Tags: <%= debug(photo.tags) %> <% end %> ...Gives the following output: tag: - authorname: gmacgregor author: 62682519@N00 id: 4181224-280985155-130
2006 Jun 21
1
Adding routes via plugins
Hi, I''m attempting to add a route via a plugin. I attempted to add the following to my init.rb: myroute = ActionController::Routing::Routes.connect "boo2", :controller=>''plugin'', :action=>''index'' puts "path=#{myroute.path}" myroute.options.keys.each do |k| puts "#{k}=#{myroute.options[k]}" end The newly
2006 May 10
1
Rails Plugin Directory - Comments
The directory of Rails plugins at http://www.agilewebdevelopment.com/ plugins/ now has support for adding comments to plugins, so stop by and leave a kind word about your favorite plugin. :) A feed for plugin comments is available at http:// feeds.feedburner.com/RubyOnRailsPluginComments, while the plugin feed itself is available at http://feeds.feedburner.com/RubyOnRailsPlugins. --
2006 Jun 06
5
[OT] O''Reilly Cookbooks
Hi, Has anyone gotten the "roughcuts" of the Ruby and Rails cookbooks? If you have the Pragmattic Rails Cookbook is the O''Reilly worth it? Also can you download PDF''s of their "roughcuts". The website is kind of vague, it just mentions online access (whatever that means). Thanks in advance.
2006 May 29
4
Time-based cache fragment expiration
Hello, I''m trying to figure out how I could implement fragment caching that expires every x amount of time. I thought of writing a runner script that would expire the cache and set it as a cron job, but that doesn''t really work because runner scripts act on models and not controllers. Does anybody have any ideas? Regards, -carl
2006 May 01
4
URL encoding in Rails?
Simple question: How does one do URL encoding in Ruby/Rails? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Apr 12
1
rails api for dashboard widget like ruby rdoc widgets
hi guys, has someone here implemented rails api for dashboard widget like ruby rdoc widget? http://www.apple.com/downloads/dashboard/developer/rubyrdocwidget.html -- sig "kind regards" :name => " Arie Kusuma Atmaja ", :callme => " Arie ", :ym => " riyari3 ", :email => " ariekusumaatmaja@gmail.com ".chop!, :blog => "
2005 Dec 17
2
Testing flickr
Hi, I watched the flickr demo video some days ago and I was impressed of Rails so I decided to test it my self.. I put it on my web server on windows (Apache2/fcgi/Rails1.0). All works well but I have this in my log: Processing FlickrController#search (for 127.0.0.1 at 2005-12-17 15:00:02) [POST] Parameters: {"commit"=>"Find", "tags"=>"flower",
2006 Jul 21
3
Interface with Flickr
Does anyone know how to get going with the flickr api WITHOUT using the ''flickr.rb'' gem? I''m wanting to just use the REXML and ''net/http'' stuff. I''m just wondering how to send requests to the api and handle the response. Any tips would be great! Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jul 20
3
Flickr API and Ruby Question...
I have a local version of the flickr.rb file installed and working properly, but apparently I''m having issues installing it on my Dreamhost server. So, does anyone know how to do it the normal way? Just interfacing directly with the flickr/api without using the gem ''flickr.rb''? Any tips in the right direction would help me tremendously! Thanks! -- Posted via
2005 Dec 20
1
Problems w/ Flickr demo
I''m trying to alongside the Flickr demo, and I''m getting the following error. I''m not sure why, as my code matches up exactly with what''s in the video. I''d appreciate any help. RgBJA ----- OpenSSL::SSL::SSLError in Flickr#search SSL_CTX_new:: library has no ciphers RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2006 May 08
6
how to make field in model immutable after create
Hello everyone! I want to have login field in User model which is set only once (on create), and then it should fail validation if the value is changed. How can I do this? I dig around for validation and tried def after_validation_on_update unless User.find_by_login(:login) errors.add(:login, "is immutable. You can''t change it") end end in model, but somewhat it