Displaying 20 results from an estimated 800 matches similar to: "merb 0.4.0 session issue"
2007 Dec 13
2
Trying to use ActiveRecord STI but fails
Hi all,
I''m wondering about my sanity here. There''s probably something simple I
overlooked. First off, I have close to zero experience with Merb.
1. I configured use_orm :activerecord in config/dependencies.rb;
2. I have a file named app/models/measurement.rb which looks like this:
class Measurement < Observation
end
3. I have another file named
2008 Jan 18
5
How do I pass form values from POST controller specs?
Hi there
I just started my first Merb app and I''m running into some weird
things in Specs. When I do:
describe "create action" do
it "should create a new project" do
project_params = {:name => ''bekkunin''}
Project.should_receive(:create).with(project_params)
controller, action = post(''/projects'', :project
2007 Jul 29
7
Merb test harness
Ezra,
* test harness in new generated merb apps with helpers for testing
merb without starting a server.
* pin down plugin arch
Seems to me that these two tasks go together unless you want to have
rspec built in Merb.
Regarding the test harness, my understanding is that:
- a developer should be able to easily write specs against a merb application.
- a developer should not need to start a merb
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
2007 Sep 07
2
memcached and fragment storage, session storage with a mongrel cluster
Greetings,
I posted this not on the Rails mailing list and didn''t get a definitive
response so I thought I''d post it here, since I figure lots of you
are using
mongrel with Rails apps. Any suggestions would be greatly appreciated.
I''ve been using file-based fragment caching and DB-based session
caching quite extensively. I decided to try out memcached for both to
2007 Dec 19
2
Nested partials losing the view context ?
Hi all !
I can''t seem to make a simple thing work... The code is here:
http://pastie.caboo.se/130660
Essentially, that''s a form with a couple of partials. The backtrace is
included in the pastie. It looks like the context for the current view
is lost when a partial is rendered. In _series.html.erb:2, I use
"series" to get the name. This is the parameter I
2006 Dec 07
3
What does js partial(...) do?
In the example application named "sample_app", comment.jerb contains
the following line:
$(''comments'').update(<%=js partial(:comments) %>);
What does the ''js'' method do to/with, if anything at all, ''partial(:comments)''?
Merb is quite fun to use and I''m starting to get a feel for it and
ruby. I''m surprised at
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 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:
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 Dec 07
4
mrblog rake task fails
Hi all,
I''m trying to run the mrblog sample application but somehow the rake
task fails:
--
Los-Angeles:~/Projects/mrblog Ulf$ rake db:schema:load --trace
(in /Users/Ulf/Projects/mrblog)
rake aborted!
Don''t know how to build task ''db:schema:load''
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1472:in `[]''
2006 Dec 06
5
Win32 gems for mongrel (0.3.18) and mongrel_service (0.3.1)
Hello Users!,
Since the pre-release 0.3.18 (last week) Lot of things happen in
ruby-land (check the DoS security bulletin, please).
Anyway, the win32 folks being left on the side of the road, and cannot
provide feedback of stability due lack of binaries for the latest
releases.
So, I managed to upload the pre-built gem to my host:
http://www.mmediasys.com/releases/mongrel-0.3.18-mswin32.gem
2006 Mar 04
29
Getting RJS / EgdeRails working
Hi,
using Rails 1.0 on windows (without svn yet) I just wrote "rake
freeze_edge". Are the RJS-templates already included then ? When I write
"rake update_javascripts" I receive this error:
svn: ''.'' is not a working copy
Any tipps for a newbie on how to get the update done (if neccessary) ?
thx
Jan
2006 Mar 07
4
Edge Rails - same code, different issues on mac and windows
Trying to get an app up and running with Edge Rails, and I''ve run into
different issues on Mac and Windows with the exact same code. It''s similar
to the issue posted in the previous RJS/Edge Rails thread, but I didn''t see
any answers in there (maybe I missed the real answer?) Both console/error
outputs listed below:
I can''t even get WEBrick to start on
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 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 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
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,
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