search for: merb_init

Displaying 18 results from an estimated 18 matches for "merb_init".

Did you mean: mem_init
2007 Aug 29
11
Non-Erubis Templates
...of ''autoload'', template handlers other than Erubis are not loaded automatically (Haml, XMLBuilder). Either this should be fixed, or the documentation should be updated to instruct people how to use non-Erb template engines. Apparently the solution is to do something like this in merb_init.rb: ::Merb::AbstractController.register_engine ::Merb::Template::Haml, %w[ haml ] So the question is: * Is this the permanent situation for the future? * Can I update the docs to reflect this requirement? Geoffrey Grosenbach http://peepcode.com
2006 Dec 01
2
ActiveRecord Sessions
...process file uploads. For the most part I''m going to keep it lean and mean. I would however like to access my active_record_session from my Rails app. Is this built into merb yet? Or is it OK to just add require ''action_controller/session/ active_record_store'' to merb_init.rb and then create my own session object (CGI::Session::ActiveRecordStore::Session.find_by_session_id (cookies[''_session_id'']))? Thanks a lot. Erik
2007 Dec 13
2
Trying to use ActiveRecord STI but fails
...on_secret_key: .6393 :mongrel_x_sendfile: true :reloader_time: 0.5 :cache_templates: false :merb_root: /home/francois/src/florian-opsdb/trunk/amara :use_mutex: true :host: 127.0.0.1 :session_id_cookie_only: true :environment: development :port: "4000" :query_string_whitelist: [] Started merb_init.rb ... Connecting to database... Thu, 13 Dec 2007 03:22:38 GMT: loading gem ''merb_activerecord'' from config/dependencies.rb:16 ... Loading Application... --- - /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib - /home/francois/src/florian-opsdb/trunk/amara/lib - projects/mongre...
2007 Mar 08
6
Transfer-encoding: gzip
Hello! What is the simplest way to make merb respond to the client sending Accept-Encoding: gzip? Just checking if it exists, otherwise I''ll implement it myself. Regards, Magnus
2007 Aug 28
1
what''s the view format in trunk?
dumb question but what''s the view format in trunk? I have a simple router: Merb::Router.prepare do |r| # default route, usually you don''t want to change this r.default_routes # change this for your home page to be avaiable at / r.add ''/'', :controller => ''upload'', :action =>''new'' end I have a simple controller
2007 Aug 30
0
Plugin Manager changes
I just committed some stuff in PluginManager to actually load the Gem- based plugins from the manifest. Merb::PluginManager.load_plugins is what goes in merb_init to load them all. For every plugin in the manifest, ''theplugin'' is required, and then we try and require ''theplugin/merb_init'' and, if that fails, we try ''plugin/init'' I''ll be working on this some more this week and next, to mak...
2007 Feb 15
1
wrong startup information in production environment
Hi, I check out the last codes from merb repository. And the startup information for production environment just like that: ====================================================== dev:/var/www/apps/upload_merb/current/log# /etc/init.d/merb_init start Merb started with these options: --- :template_ext: :html: :herb :js: :jerb :xml: :xerb :config: dist/conf/upload.conf :drb_server_port: 32323 :sql_session: true :cluster: 2 :cache_templates: false :host: 127.0.0.1 :port: "6000" :allow_reloading: true :start_drb: true :merb_ro...
2007 Sep 22
9
skeleton and configs
Hi people, just thought I''d mumble out my thoughts on merb''s apps directory structure and config concepts and see what other people are feeling... the app dir: mvc/application is layed out as expected....maybe without the mailer by default (another discussion) the config dir: I really think that it''s confusing to have such a mixture of ways to configure some
2007 Aug 04
0
observers
...n case anyone else was trying to use active record observers. In rails you define your observers in the environment.rb and it instantiates them somewhere during startup. To use that in merb you have to define the observers and then also instantiate them. Add something like this to the end of the merb_init.rb file. ActiveRecord::Base.observers << :attachment_observer ActiveRecord::Base.instantiate_observers At least its working for me from merb -i right now.
2007 Jun 19
0
Default 500 Error Page in Production
Currently, Merb just shows a string on error: "500 Internal Server Error" I''ve added this to my merb_init.rb: if MERB_ENV == ''production'' module Merb def self.html_exception(e) File.read(DIST_ROOT + "/public/500.html") end end end http://nubyonrails.com/500.html Potentially a plugin could be written to log this to the database. However, I think the defau...
2007 Mar 09
0
Merb + attachment_fu
...it''s not pretty. Besides fixing the TODO mentioned in the attachment_fu source code to support Merb tempfiles, the main thing I''ve done is change is attachment_fu''s init.rb to manually load the files in its lib directory (and, trivially, define the RAILS_ROOT constant in merb_init.rb). I think this is due to the way that merb loads plugins (Dir[DIST_ROOT+"/plugins/*/init.rb"].each { |m| require m }) versus how Rails loads plugins (see Rails::Initializer#load_plugin). Any thoughts on making Merb able to load a typical Rails ActiveRecord plugin more easily? Regards...
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
2008 Mar 16
0
Merb Init Problems
...MERB8520 :use_mutex: true :merb_root: /Users/josh/Projects/schmerb :session_id_cookie_only: true :port: "4000" :query_string_whitelist: [] :environment: development /usr/local/lib/ruby/gems/1.8/gems/merb-0.5.3/lib/merb/version.rb:45: warning: already initialized constant RELEASE Started merb_init.rb ... Loading Application... Compiling routes.. josh at JDS-MacBook:~/Projects/schmerb$ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20080316/9d080187/attachment.html
2007 Oct 30
1
Merb - Losing connection to MySQL
Hello, Once or twice a day I''m losing connection to MySQL and this error is generated: Mysql::Error: Lost connection to MySQL server during query: INSERT INTO pictures (`content_type`, `name`, `size`, `thumbnail`, `updated_at`, `pictureable_type`, `description`, `pictureable_id`, `filename`, `height`, `user_id`, `parent_id`, `created_at`, `width`) VALUES(''image/jpeg'',
2006 Dec 27
3
ARSession Woes!
I''m having an issue with ARsessions... I have a rails app AND a merb app both under the same domain... I have redirects working for this to be seamless... however, the session started on merb is different than the session started in the rails app... like so.. http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y Any ideas why? The only difference I see, but dunno where to change this, is
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 May 14
7
Help a newb with 0.3.1
Hi, first off thanks Ezra for Merb - it''s certainly interesting and I''m keen to have a play. However, I''m having difficulties in getting started. I''ve followed the docs for setting up mrblog and everything seems to be installed correctly, and merb appears to start fine: $ merb you must install the markaby gem to use .mab templates you must install the
2006 Oct 17
4
Merb, Mongrel+Erb
...mount merb at a url in mongrel itself along side a rails app but I have to do more testing to see how that affects everything. If you want to play along at home you can do this to get a quick start: $ sudo gem install merb $ gem unpack merb $ cd merb-0.0.3/examples/sample_app # edit the conf/merb_init.rb to add your database password info. # then add a posts table to your db with a title and body column. $ merb start -t Then you can browse to these urls to play around. http://localhost:4000/posts/new or http://localhost:4000/posts/list or http://localhost:4000/uploads/start Here are the rel...