```ruby
class FlickrController < ApplicationController
  def index
    
	begin
	  @photos = flickr.photos.search(:text => "srnsw.*")
	rescue
	  @photos = Array.new
	end 
   
   render :partial => 'index'
  end
end```

Use machine_tags instead of text for Flickr's search
user
```ruby
class FlickrController < ApplicationController
  def index
    
	begin
	  @photos = flickr.photos.search(:machine_tags => "srnsw.*=")
	rescue
	  @photos = Array.new
	end 
   
   render :partial => 'index'
  end
end```
assistant