similar to: need help on writing a plugin

Displaying 20 results from an estimated 1500 matches similar to: "need help on writing a plugin"

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
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
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
2009 Oct 11
1
passing model data to a plugin called within that model
I am making a plugin which extends ActiveRecord::Base I have the plugin working in my models in other aspects. I would like to pass in some data to the plugin, but I can''t get the data I would like. so if I have: class Stuff < ActiveRecord::Base belongs_to :thing my_plugin :id => self.thing.other_id end it chokes on figuring out what to do with self.thing.other_id.
2009 Apr 08
4
Having trouble extending a class from a Rails plugin
I have class in a plugin that I want to crack open and add some functionality to for a particular application. So, I created a file by the same name as the class in my app/models folder and added some methods to the class, but, I can''t seem to get Rails (2.2.2) to pick-up the extended definition. I did find while trying to debug the problem that if I paste the extended definition into,
2006 Feb 24
5
Sanity Check
Maaaaaaaaaaaaajor sanity check needed. I wrote a simple little plugin, and it wouldn''t load. I put some comments in it''s init.rb, and it didn''t even spit those out. So, I dug into the initializer.rb (/vendor/rails/railties/lib/initializer.rb) to see wtf is going on, and found the problem... but... can''t explain it. Here is the code in question:
2017 Feb 19
2
Fwd: nbdkit async
----- Forwarded message ----- Date: Sat, 18 Feb 2017 22:21:19 -0500 Subject: nbdkit async Hello, Hope this is the right person to contact regarding nbdkit design. I have a high latency massively parallel device that I am currently implementing as an nbdkit plugin in c++ and have run into some design limitations due to the synchronous callback interface nbdkit requires. Nbdkit is currently
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
2007 Dec 21
2
Open Sourced Ruby on Rails 2.0 Book (german)
Hi, rubyonrails.de published an open sourced Ruby on Rails 2.0 book. It''s currently only in german, but we hope that it will also be translated into english. If someone is able and have time to do this: send me an email The first edition covers the installation, configuration and a HelloWorld example. The second chapter will follow soon. We currently updating it to Rails 2.0. Details
2007 Dec 19
4
Questions on writing plugin for merb
Hey all, I am looking to write a plugin for merb and have a few queries about how to best go about it. I have a few questions (sorry if some are very merb newbie ones): - It seems all the plugins are gems; I can just add dependencies (my plugin will require soap4r) as per any usual gem spec? - If I want my plugin to add some new generate functionality? Is this possible? If so, are there
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 Aug 15
5
Misc notes concerning view_paths
Hi all, I''ve been playing in the trunk with putting stuff in different dirs to keep files from a reusable framework separate from the app files. Here are a few considerations regarding the view_paths setting: config.view_path is used to set both action_controller.view_paths and action_mailer.template_root. We get some buggy/unexpected behavior here because
2007 Oct 02
19
Per-Request View Paths
I haven''t had a chance to work on fixing multiple controller view paths recently. My original patch attempt was: http://dev.rubyonrails.org/ticket/8582 It was rejected due to the fact that it was fixing the symptom more than the problem. However, I think it''s critical that this problem get fixed, otherwise the whole concept of view_paths is severely neutered and