search for: find_by_url

Displaying 4 results from an estimated 4 matches for "find_by_url".

2007 Feb 08
1
undefined method `find' for Status:Class
...ed method `find'' for Status:Class): /app/models/page.rb:49:in `status'' /app/models/page.rb:57:in `published?'' /app/models/behavior.rb:92:in `find_page_by_url'' /lib/advanced_delegation.rb:10:in `send'' /lib/advanced_delegation.rb:10:in `find_by_url'' /app/models/page.rb:72:in `find_by_url'' /app/controllers/site_controller.rb:29:in `find_page'' /app/controllers/site_controller.rb:34:in `show_uncached_page'' /app/controllers/site_controller.rb:22:in `show_page'' /vendor/rails/actionpa...
2006 Dec 29
2
update_attributes fails: ReadOnlyRecord
I''m trying to update a record, but it just stops with "ActiveRecord::ReadOnlyRecord". I don''t understand why, because I never wanted my model to be read only. Relevant code: Controller: def edit @project = find_project if request.post? @project.update_attributes(params[:project]) if @project.save flash[:message] = _(''Project was
2007 Mar 16
7
how to send mp3 inline?
hey all, I''m trying to do a: send_file @file, :type => ''audio/mp3'', :disposition => ''inline'' ,:stream=>true I tried with all browsers and it always asks me to download the file or open it with a player. Is there a way to make it open in the embeded player (QT,Windows media player,Mplayer etc)? Only with konqueror if I open in new tab then I
2009 Dec 12
6
How to scrape a page without knowing its html structure
Hi, I''m doing one module in my site, there I need to import user blog into my site. I can use RSS feeds to read the blog information but using RSS feeds I''m not getting entire information. So, I need to scrape the user blog page. How to scrape a pages without knowing its html structure of a page? Please anyone can help me for this issue. Thanks in advance. -- You received this