search for: to_url

Displaying 7 results from an estimated 7 matches for "to_url".

Did you mean: do_url
2006 Apr 25
2
undefined method `to_url'' for "This is my weblog":String
Hi, In my application I cant use "to_url" method on any of strings. What should I do if i want to use this method? Is there any plugin needed to download for this "to_url". In my application now when I am trying to use this methos I am getting following error:- ======================================== undefined method `...
2006 Apr 20
2
Image Display Question
...="/images/public/uploaded_images/2-thumb.jpg?" /> Notice the question mark at the end of the string. I have no idea where this coming from. Here are the important parts of my code: In the ''image'' model: DIRECTORY = ''public/uploaded_images'' def to_url return DIRECTORY + "/#{self.id}-thumb.jpg" end In the images_controller: def list @images = Image.find :all, :order=>"id DESC" end In the list.rhtml view: <div id="photos"> <%= render :partial=>''images'', :coll...
2012 Oct 24
2
concurrent requests (Rook, but I think the question is more general)
...nction(env){ req <- Rook::Request$new(env) res <- Rook::Response$new() res$write("This is pong.") res$finish() }, '/?' = function(env){ req <- Rook::Request$new(env) res <- Rook::Response$new() res$redirect(req$to_url('/pong')) res$finish() } ) ) s$start(quiet=TRUE) s$browse('pingpong') ############################# If you request /ping, R runs Sys.sleep() for 20 seconds. This is where my .Call() statement would be. While the .Call() (Sys.sleep()) function is doing its thing,...
2006 Jul 12
12
pass hash as parameter
Hello, How can I pass a hash as parameter from a template with url_for? e.g. : if I have test = { :a => "a", :b => "b" } How can I pass that with my request? Is it possible to pass nested hash''es to? Right now, url_for :action => :test, test doesn''t seem to work. Thank you, --
2006 Apr 24
0
ImageMagick and EXIF Data
...#39;).last.downcase write_attribute("content_type", file_data.content_type) write_attribute("original_name", file_data.original_filename) write_attribute("file_size", file_data.size) end def url path.sub(/^public/,'''') end def to_url return DISPLAYTHUMBS_DIRECTORY + "#{self.id}-thumb.jpg" end def to_large_url return DISPLAY_DIRECTORY + "#{self.id}-full.jpg" end def thumbnail_url thumbnail_path.sub(/^public/,'''') end def path File.join(DIRECTORY, "#{self.i...
2006 Jul 25
11
Prevent users from entering urls
How could I make it so that links on my page could link to a controllers action, but if the user manually entered the url, it would redirect them back to the main page? Is this possible? Thank you, -Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2008 Sep 19
3
create Graphical charts using rails
Hi Could anybody please point me to some good links to draw Graphical charts using RubyOnRails and also suggest which is the best one? Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,