similar to: how to send mp3 inline?

Displaying 20 results from an estimated 4000 matches similar to: "how to send mp3 inline?"

2006 Dec 16
5
trying to add another app
hey all, I have an app working great with apache2 and mongrel_cluster. However, I''m trying to run another application and now when I go to app1.comit falls to app2.com and the opposite. That''s probably because I messed up somewhere with the cluster. this is the content of my conf.d/app1.proxy_cluster.conf: <Proxy balancer://mongrel_cluster> BalancerMember
2007 Nov 09
26
RSpec on Rails 2.0
I have a project on edge rails that I''m trying to convert from Test:Unit to rspec. I have the rspec gem version 2338, the rspec and rsepc_on_rails version 2831 in vendor/plugins, and rails version 8117 in vendor/rails. I''ve been able to get a few specs passing, have gotten the specs running from autotest, and am able to do "rake spec:doc" and get the basic command
2007 Jun 26
11
mongrel not daemonizing for me..
Hey All, I''m setting up some mongrel servers.. can''t get it to daemonize. here is my configurator block:: config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do #debug(''/gateway.rb'',[:access,:threads]) listener :port => OPTIONS[:port] do uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, :num_processors =>
2010 Apr 30
2
Steve Jobs about theora
I guess you've all read it already, but here it goes: "All video codecs are covered by patents. A patent pool is being assembled to go after Theora and other ?open source? codecs now. Unfortunately, just because something is open source, it doesn?t mean or guarantee that it doesn?t infringe on others patents. An open standard is different from being royalty free or open source. Sent
2006 Oct 25
4
need help on special HABTM relation
hey all, I have three tables like this: forum (id,title) usergroup(id,title) forum_perms(usergroup_id,forum_id,read,write,post) is there a way to deal with that kind of relation with rails such as by using has_and_belongs_to_many kind of stuff? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 May 22
4
Recommendations for eternally-running backgroundrb workers?
I''ve got some workers that I want to have running all the time. Right now I''m just launching them manually, by requesting a special page in my rails app that includes lines like: MiddleMan.new_worker(:class=> :receiver, :job_key=>:r, :args=>{:sleep_time=>10}) This strikes me as a really weak way to fire up my workers. I basically want to automate things so
2007 Aug 15
2
need help on writing a plugin
Hey all, I''ve just "script/generate plugin my_plugin" and I would like to "overload" one of my view. Say I have app/views/sessions/new.html.erb and I would like to rewrite that file without touching it using the plugin. Any idea how to do this? I would also like to do the same thing with models and controllers of my application. I couldn''t find a tutorial
2007 Oct 29
1
evented mongrel dies on USR2
Sorry if this is the wrong place to ask, but when I run mongrel evented using swiftiply and then send it the USR2 signal to restart it, it dies. Without eventing, USR2 restarts mongrel as expected. Anyone else seen this? Here''s a dump: $ EVENT=1 mongrel_rails start -d -P /tmp/m.pid -p 4321 Using Evented Mongrel ** Ruby version is up-to-date; cgi_multipart_eof_fix was not loaded $ kill
2006 May 14
4
searching on foreing keys
Hey all, I''m using a simple search function. It''s working great except for foreign keys. I have one table pets (id,name,owner_id) and another table people(id,name) owner_id being a foreign key of pet pointing to people name. here it is on the pet controller: @paginator, @pets= paginate(:pets, :conditions =>["name OR owner_id like
2006 Nov 13
1
rails+apache2+mongrel_cluster
hey all, I managed to configure a mongrel+apache2 but now I would like to do a mongrel_cluster. For now I have a sites-available/myapp but when it comes to mongrel_cluster I need to set up myapp.common, myapp.proxy_cluster.conf and myapp.proxy_frontend.conf and I couldn''t find a tutorial that explain where should those file go. is it in conf.d or sites-available/ or else? thanx in
2006 Aug 17
1
2 newbie question
Hey all, I have 2 newbie questions, 1st question: <%= collection_select (:region, :id, @regionall, :id, :title,options={:prompt=>"- Select cat -"}) %> Ignores the :prompt part while options={:include_blank => true} works. Any idea what I?m doing work with :prompt ? 2nd question: How can make my collection_selected to display it''s third key by default? I know it has
2006 Nov 04
1
search function
Hey all, I''m writing a search function for my page but I get stuck at the form part. When I press submit all the params are nil. here is my list.rhtml: <%= start_form_tag :controller=>''ads'', :action => ''search'' %> <%= render :controller=>''cats'',:partial => ''/cats/search'' %> <p> <%=
2006 May 13
1
need help for my link_to
I have a model Document that shares the same primary id with another model Upload, I would like to put a link on _list.rhtml of my document to edit the upload of the same id. I tried something like <%= link_to ''Edit'', {:controller => upload, :action => ''edit'', :id => document} %> but obviously that''s wrong. Any idea how to make it right?
2006 May 13
1
how to close the window on def update?
hey all, I have my usual update function like this: def update @document = Document.find(params[:id]) if @document.update_attributes(params[:document]) flash[:notice] = ''Document was successfully updated.'' redirect_to :action => ''show'' else render :action => ''edit'' end end I would like to change:
2007 Jun 21
2
does activeresource only work with edge?
hey all, I''ve just installed the activeresource gem and it wasn''t working, so I did gem update rails and it worked. But now I have rails-1.2.3.6906 and I think this is edge right? Is there a way to work on regular rails 1.2.3 with activeresource? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2007 Nov 18
3
mongrel_cluster on OS X 10.5 Leopard
So, Leopard server has been great, most everything I need is here. Thanks to a nice example here: http://www.cyberarmy.net/library/article/1722/ I was even able to sort out using Mongrel with Apache 2. All works out of the box, except mongrel_cluster. The gem just won''t install. I could really use some guidance here. I did try the darwinports mongrel_cluster install from here:
2006 Apr 12
9
Showing Images from a file store
Hi all. I am wrting a small content management tool for my company and was trying to display some images from our file store shown below. <td> <img src="\\xx.xx.xxx.xx\xx\xx\xxx\abc.gif"/> The app was displaying the image when it is under the \public\images directory. Is there anything special we need to do to get a file from outside the root of the application? Any help
2007 Nov 07
2
Setting headers in sent_file response
I''m having trouble playing a video from my site on the iphone using send_file. It seems that I''m missing the Accept-Ranges header in my response. How can I set the Accept-Ranges header in my send_file response? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2007 Feb 28
8
Export/save csv-file to desktop of user?
Hi, looking for something that simple, but can''t find it. I got: outfile = File.open(''teams.txt'', ''wb'') CSV::Writer.generate(outfile) do |csv| for team in @teams csv << [team.id, team.name] end end outfile.close send_file "teams.txt", :filename => "teams.txt",:disposition =>
2006 Aug 08
2
send_file problem
I''m attempting to use send_file to send an image file from public/images. The file is world readable. I keep getting the following error: A ActionController::MissingFile occurred in account#current_logo: Cannot read file public/images/logo.png /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/streaming.rb:55:in `send_file'' I''ve tried supplying