Displaying 20 results from an estimated 2000 matches similar to: "Rails session parasite..."
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 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 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:
2006 Dec 23
1
Generating a merb app skeleton...
I have just started playing with merb. I think this framework has great
potential
so ATTA BOYS are in order !!
Perhaps I missed something in the readme file, but how do I generate a
default
app in merb.
I was looking for something like the cmd below to generate the app
hierarchy ??
> merb myapp
-Fernand
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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
2007 Sep 20
11
Proposed API change for respond_to
Ez (or someone) asked on #merb tonight whether respond_to was the
right API for
what it does. After some discussion and pasties, I offer the
following proposed
API for content negotiation and response format selection:
First, what does respond_to do right now? I see at as performing 3
distinct
operations:
1. parse params[:format] and the accepts header to find out what
format the
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 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 Apr 30
2
Serving static files with Merb
Hi,
I''m using Merb from the svn repository (revision 224, Merb 0.3.0).
I am playing around trying to return static files. I''m opening a File
and returning that from the controller. I''m setting the mime type and
the content length (other wise nothing much happens). All requests
for static content go through the same action of a particular
controller.
This is
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 May 31
4
Sample Merb App
I put together a sample app to help people learn Merb:
http://svn.depixelate.com/applications/invoice_tracker/
I also blogged about it here:
http://depixelate.com/2007/5/31/taking-merb-for-a-spin
--
Zack Chandler
http://depixelate.com
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 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 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
2006 Dec 01
2
ActiveRecord Sessions
I am considering using merb to 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
2006 Dec 03
2
How To Create Database Tables With Merb 0.0.7?
Howdy,
I just gem unpacked merb and have configured the sample_app to use an
sqlite3 database. I see that the Rakefile has a task named "schema",
but it points to /dist/schema/schema1.rb", which doesn''t exist. I
copied /dist/schema/schema1.rb to /dist/schema/schema.rb then ran
"rake schema". What''s the recommended way to create the database
tables?
2007 May 04
6
Rspec on Merb Plugin - Initial thoughts?
A couple days ago I submitted a patch, that was committed by Ezra, to the
MrBlog project for the Rspec on Merb plugin.
So far, it only works with ActiveRecord including fixtures.
Has any played with it? If so, did you get it to work?
I''m going to be submitting a patch for Controller specs soon. It will be
very bare bones, given my current lack of understanding of Merb controller