Displaying 20 results from an estimated 6000 matches similar to: "Making failing view specs easier to troubleshoot"
2008 Jan 13
2
How to set a controller''s layout?
I''d like a controller to use a specific layout for all its views.
Right now I''m calling `render :layout => ''foo''` in each method, but
there must be a better way. I tried
class Users < Application
layout ''foo''
end
And that definitely doesn''t work. Then, as a test, I tried setting
_layout within a method, like this:
def
2007 Oct 24
1
Status of Merb on JRuby
I''ve submitted a few patches on Trac to help get Merb running under
JRuby [0][1][2][3][4]. It''d be cool if any of you committers could
find the time to look them over and apply/reject them. They''re mostly
tiny, so it shouldn''t be too onerous.
With all of these patches applied, there are still 3 spec failures.
One is in the spec ''a merb mailer
2007 Mar 13
0
Specs for Ticket 21
I''ve submitted some specs for the problem I found with parsing multipart
forms.
http://merb.devjavu.com/projects/merb/ticket/21
It looks like the problem is broader than I thought before. The multipart
form parsing only takes the last field in the form, the others get thrown
away.
Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Aug 26
0
Routes patch w/ specs
The new routes system is available as a patch, with specs. There are
a few specs that fail (6) having to do with mail and content
negotiation. I could use some help figuring these ones out. Lots of
things have changed, mostly in the dispatcher and controller classes.
Let me know what you think, and then let''s get this patch applied.
2007 Dec 13
1
Merb::RenderMixin#set_status refers to non-existent RESPONSE_CODES constant
#set_status
http://merb.devjavu.com/browser/trunk/lib/merb/mixins/render.rb#L270
refers to a non-existent constant. I tried, while creating #359, to
make things OK, but I failed. I started by using STATUS_CODES instead,
then used #[] instead of calling a method named STATUS_CODES, then I
found out that during the call to #inherited
2007 Sep 19
4
Ticket #190 (friendlier way to add / register a mime type)
Following up on #190 [1], I''ve just added a simple patch that allows
the manipulation of the TYPES hash from within the Merb module. Use
like:
Merb.add_mime_type(:png,%w[image/png])
Merb.remove_mime_type(:png)
It specifically disallows the removal of the :all MimeType, since
content negotiation relies on it.
I''m not super wonderful at API design, so comments and
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,
2007 Jul 18
2
Hash.from_xml
Hi,
I''ve started looking at ticket
90<http://merb.devjavu.com/projects/merb/ticket/90>and there are a
couple of situations that the current implementation doesn''t
cater for.
1. Tag Attributes are wiped out.
- <tag1 attr1=''1''>Content</tag1> #=> { "tag1" => "Content" }
- I think it should return
-
2007 Mar 28
0
[recipe] How to get on Merb Edge
Hello,
My name is Olle, and I am new here. I''d like to add some detail to
Ez''s explanation in a previous email [1]. These are the steps I took
to get Merb running Merb Edge (is that what you call it?).
Start in the merb-root not in the dist-root.
# Create dist/framework, plus script/merb stub
rake merb:freeze
cd dist
rm -rf framework
# Replace dist/framework with trunk
2007 Sep 28
0
Any problems with devjavu.com?
Hi all,
apologies if this isn''t the right place to ask.
merb.devjavu.com seems to be down for me everyday between 11:00am UTC
and 5:00pm UTC. Anyone outside the US seeing this problem?
Btw, merb is just... beautiful.
Cheers,
David
2007 Nov 08
1
Back to ruby2ruby?
Hello guys.
I missed a lot of the development before 0.4 got out (btw, excellent work!).
I checkout last night the merb-trunk code and run the specs, found
that everything passes with 1 pending, but no errors or failures about
missing ruby2ruby.
There is a ticket (#274)[1] that discuss this, but I remember we
discussed this back in September about depending on RubyInline...
Also, the merb gem
2007 Dec 13
0
constants_rewrite branch, Merb.root and Dir.pwd?
Hello Guys,
Doing some svn up and some looking at the code in the repo, found that
MERB_ROOT and the replacement Merb.root constant based heavily on
Dir.pwd (on trunk:
http://merb.devjavu.com/browser/trunk/lib/merb.rb#L89)
Dir.pwd present a problem when you try to run something "outside" the
root of your app, let say inside app directory it will wrongly assing
MERB_ROOT to Dir.pwd and
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 Aug 06
0
new patch adding control_for :boolean to create a checkbox
I''m sorry I didn''t have time working on the tests/models generator but here
is a tiny patch I wrote to help you creating form check boxes.
http://merb.devjavu.com/projects/merb/ticket/114
-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070805/e42cd930/attachment.html
2007 Oct 16
6
respond_to API
I''ll probably do my respond_to API rewrite, as discussed here:
http://rubyforge.org/pipermail/merb-devel/2007-September/000275.html
sometime this week, unless someone has come up with a better API.
I''ll also work in http://merb.devjavu.com/ticket/227 at the same time.
Any serious objections?
2006 Oct 17
4
Merb, Mongrel+Erb
Hey there folks-
I''m happy to announce the first useable release of my new pocket-
framework Merb. Merb is a mongrel handler with built in controller
and view templating with erb. It has a nice routing system similar to
rails but much simpler. It uses some of the code from the camping
handler and the rails handler and then some of its own secret sauce
to form imho a nice fast
2007 Nov 13
1
nitpicking :)
The http://merbivore.com/get_merb.html#trunk page mentions the 0.4.0
version, but 0.4.1 is out. Is this a part of the site which will be
constantly updated as part of the release cycle?
The roadmap on merb.devjavu.com has outstanding tickets for 0.4.0 and
0.4.1, yet both versions are out. Were those issues fixed, or should
they be bumped forward?
Yeah, this is really anal crap, I know. I would
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 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)
2009 Oct 22
4
spec failing to run specs when spec.opts is present on 1.2.9
Hi
I ran across the following when running spec on an old merb app.
$ cat spec/spec.opts
$ spec spec/models/topic_spec.rb
Options written to spec/spec.opts. You can now use these options with:
spec --options spec/spec.opts
$ cat spec/spec.opts
spec/models/topic_spec.rb
$ spec spec/models/topic_spec.rb
Options written to spec/spec.opts. You can now use these options with:
spec --options