similar to: Generating a merb app skeleton...

Displaying 20 results from an estimated 1000 matches similar to: "Generating a merb app skeleton..."

2007 Sep 05
5
Reloading ??
All, So I got passed my initial hurdles with merb 0.4. And all seems to work very nicely. Thank you all for your help ! One thing though, why should I have to bounce the merb server when I change my controller or associated classes ? Am I missing something ? I am having flash back to my java days where I now have to reflect on what changed and bounce the server accordingly...
2007 Jan 12
5
Rails session parasite...
All, I see this item on the merb-0.0.8 release notes Added rails session parasite mode. I am assuming merbs can piggy back off the rails current session. How does one achieve that ? Thanks Fernand -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070112/0803f46e/attachment.html
2007 Sep 04
1
Couple of questions for Merb 0.4
All, I have just updated to the latest release of merb 0.4 and I am wondering how I can get my controller changes to reload without bouncing the server ? I am running in dev mode but my changes to my merb controller don''t seem to get picked up on new requests. Also say I have a controller that needs to render an alternate xml format ie something like:
2007 Jan 03
2
Using helpers...
All, I am getting an undefined method exception while trying to use a helper method in a xerb file. I am running version 0.0.8 module Merb module FredHelper def blee( args ) .... end end end In the xerb template I have xml.bobo blee( args ) At runtime I am getting undefined method ''blee'' I tryied
2007 Sep 04
5
Xml templates...
I was looking in using an xml_builder template to do something like: blee.xerb xml.blees do <% for blee in @blees %> xml.blee = blee.name <% end %> end It looks like the xml_builder template can''t expand the erb tag. It this not the correct way to expand and xml template ? Thanks ! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jan 19
5
Merb Init Script
I''m trying to emulate the mongrel_cluster_ctl but it takes a -c conf_file option... meaning I can run it from anywhere as long as I tell it where the conf file is. Merb doesn''t have that capability does it? (it has an additional/supplemental config like mup.conf etc) Do I have to be under the merb_app root /path/to/merb/app/ to be able to run merb? Let me know. Thanks,
2007 Jan 02
1
Caching...
Hi, I am just starting playing with merb and was wondering if there is any caching strategy available. I was planning on using the action caching plugin but I am quiet sure what is the merb plan with dealing with plugins... Any idea or suggestions ? Regards, Fernand -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jan 03
1
Specifying load path...
All, How can I specify a load path in merb ? I have some classes in a lib directory that needs to be in the load path. Not sure how to accomplish that with merb.... Thanks, Fernand -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070103/2c960f36/attachment.html
2006 Aug 23
3
Auto-Reload...
Hi, Not sure if this was posted before.... Is there a way to tell the backgroundrb server to reload workers a la rails in dev mode ? It seems that I have to cycle the server everytime I change my workers... Also has anyone cooked up a script for monitoring the background drb process on a nix OS ? ie rc init for server startup and making sure the process is happy
2007 Dec 19
3
Trapping custom exceptions in merb 0.5.0
Hi, I have the following setup: class Fred < Application class InvalidKey < Merb::ControllerExceptions::Unauthorized; end def blee raise InvalidKey unless key end end I have added a view exception template in views/exceptions/invalid_key.html.erb but I am not seeing the exception page being rendered ?? The request seems to correctly go to
2007 Aug 31
3
Bootstrapping from SVN
Is there a simple way to bootstrap merb directly from the Subversion repository, rather than first installing it as a gem? I can do the following if I already have an old gem lying around: merb -g testapp # using an old gem cd testapp rake merb:freeze_from_svn Unfortunately, that means I''m using an old version of the generator. So for example, when I just tried this,
2006 Aug 08
1
Problem installing the plugin...
Hi, I am running ruby 1.8.4 rails 1.1 on Mac OSx and I am getting the following error installing the plugin. Any ideas ? ( BTW This is a brand new rails app ) Thanks !! ruby script/plugin install svn://rubyforge.org/var/svn/backgroundrb --force subversion/libsvn_wc/lock.c:630: (apr_err=155007) svn: ''/Users/fgaliana/work/samples/fred/vendor/plugins'' is not a working copy
2007 Aug 04
2
How do you run an app on "edge merb"?
I didn''t quite see a direct answer to Matt''s question regarding running merb from SVN: http://rubyforge.org/pipermail/merb-devel/2007-July/000132.html In a merb application, is there something comparable to having rails in the vendor/ folder of a rails app? Thanks, Duane Johnson (canadaduane)
2007 Nov 07
2
merb 0.4.0 session issue
Not sure if anyone else has had this problem. I was running on merb edge fine a few days ago. Last night I went to merb 0.4.0 via gem install and now any call to session[:foo] causes an error >> undefined method ''[]'' for nil:NilClass I have uninstalled and reinstalled merb with no luck. dependencies.rb use_orm :activerecord merb.yml :session_store: active_record Gems
2007 Dec 30
2
Loading config YAML into merb process for the life of the process
Hey Chaps, Forgive me for not fully understanding the inner workings of merb, but I would like to read in a YAML configuration file once when the application is booted rather than reading it every time it is used (as presumably the overhead in doing that is significant?) - I had presumed this is how both Merb and rails do it for there database.yml config files (hence its a requirement
2007 Nov 07
1
merb/sequel mutex on or off? proxy_balancer or no?
Just a quick question to those of you using merb and sequel or datamapper. How do you setup your merb app? For example: merb -X off -c 5, then run mod_proxy_balancer or nginx to load balance between the 5 (or whatever #) of merb nodes? merb -X off -d, then simply use something like proxypass merb -c 5, keep the mutex lock and cluster it haproxy, swiftiply, evented mongrel...... What
2007 Sep 21
3
merb 0.4.0 - redirect problems
I had redirects working just the other day... before I upgraded to the latest release. Can somebody please chime in as to why this simple redirect is throwing an error? Controller: ----------------------- def do redirect "http://www.ebay.com" end Error Output: ------------------------- Internal server error 500 uninitialized constant Merb::ControllerMixin::MovedTemporarily in
2007 Mar 13
2
running merb locally
Stupid question, but is there a way to run merb locally, without installing it as a gem? I don''t mean freezing it into a merb app, but checking out merb and being able to run it without installing the gem first. The reason I ask is that I''m working on some debugging stuff and it''d be helpful to be able to modify the source code, run it, modify, run, and so on. (And yes,
2007 Jul 31
2
Deploying with Merb
After a half day''s work I''ve created a Merb app to handle file uploads for a Rails app. In my dev environment, I changed the views in the Rails app to point to Merb on port 4000. But now I''m stuck trying to figure out how to deploy my new Merb app on a production server. Looks like originally this was handled with a rewrite rule
2008 Jan 03
3
Whats the merb equivilant of this?
Hey All Quick question, what''s the merb equivalent of this: ActionView::Base.new([template_root], assigns, self) in merb? Ive found Merb::Template::Erubis.transform(:file => ''/path/to/file'') But I''ve no idea if thats the correct thing to be calling? It doesn''t ''feel'' right, so im not sure it is? Thanks Tim