Displaying 20 results from an estimated 1000 matches similar to: "What does js partial(...) do?"
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 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 29
1
templates with same name before extension are cached
Hi all,
I was just wondering if this is the intended behavior. Here is my setup:
controller
def index
respond_to do |f|
f.xml { render :xml => true }
f.html { render :layout => :none }
end
end
In my views I have a file for each type
index.herb
index.xerb
The first request I send is cached and interferes with the other one.
For example, if I send an xml request
2006 Dec 18
1
Upload Progress (mup.js) typo
I was using the sample_app and found out that the progress bar wasn''t
changing color. It was updating the percentage but wasn''t updating the width
of the status bar style...
I found that the mup.js was missing and appended "px"
So here it is: my first ever Merb patch!
http://pastie.caboo.se/28450
cheers,
-rjs-
(the_mug)
Blog: http://www.rosamour.com
--------------
2007 Aug 29
11
Non-Erubis Templates
Trunk Issue: Because of the use 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
2006 Dec 03
1
File Upload Unix Only?
I tried the upload feature in merb 0.0.7 using http://localhost:4000/files
I get the following:
Permission denied - D:/Temp/Merb.5172.0 or
E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/public/files/foobar.jpg
- (Errno::EACCES) C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `rename''
C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `mv''
C:/Ruby/lib/ruby/1.8/fileutils.rb:1379:in
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 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
2006 Dec 04
2
Merb on Win32 Platform
I''m trying to get Merb running on Windows XP SP2 and am experiencing
some difficulties. I load http://localhost:4000/posts/new in my
browser expecting to see the contents of new.herb rendered. However
the following error is reported:
Request: PATH_INFO: /posts/new
Params: {"action"=>"new", "id"=>nil, "controller"=>"posts"}
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
2006 Nov 28
34
Uploading Large (100mb+) files
I have an Apache 2.2.3 (mod_proxy_balancer) frontend server that does
not have mongrel installed. It does proxy requests to several other
mongrel-only servers (each running 2 mongrel processes). Each mongrel
node has the same rails code-base and it''s working perfectly.
However, my question is when I add an upload file form... where is it
going to physically put that file? I mean since
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
2012 May 09
5
Unicorn doesn't play nice with Capistrano deployment?
I am having issues when using unicorn with a Capistrano deployment.
>From what I have been able to understand Capistrano uses a scheme in
wich every release is deployed inside the releases directory under a
unique name and if the transaction was successful, creates a symlink
named current that will point to that release.
So I end up with a deployment directory such as:
2008 Sep 25
2
jquery, format.js and IE
I''m trying to use jQuery to write all my js unobtrusively, and running
into a bit of a problem when triggering the format.js block in IE6 (and
possibly IE7). It returns the JSON string no problem, but instead of
parsing it, IE6 asks to download the resource as a .js file.
So if my url is ''/pictures/1.js'', IE6 will ask to save or run ''1.js''
I did do
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
2010 Oct 20
3
rspec error's when checking LayoutLinks from the railstutorials
I am following the rails tutorial:
http://railstutorial.org/chapters/filling-in-the-layout#top
Basically the test is something like:
spec/requests/layout_links_spec.rb
require ''spec_helper''
describe "LayoutLinks" do
it "should have a Home page at ''/''" do
get ''/''
response.should
2007 Mar 02
1
example standalone error.
Hello,
Trying to get the example to work in standalone mode. I have the following
in a file and am not certain why I get this undefined method error:
error:
~/ruby sample_app.rb
my sample app :)
sample_app.rb:9: undefined method `new_worker'' for
BackgrounDRb::MiddleMan:Class (NoMethodError)
### code follows ###
# sample_app ... try to get stand-alone happiness.
#require
2006 May 27
5
ActiveSupport JSON working?
Hi,
I am trying to convert a hash to JSON using ActiveSupports built in
.to_json. I am doing similar to the example below but are there
certain strings that could go in place of ''bar'' or ''rez'' that will
break the to_json method? I am using a very long string from rjs
output in place of ''bar''.
Perhaps .to_json is not ready yet?
Thanks,
Peter
2008 Jan 07
2
rendering js
Hi all,
Just been working on a new app and I''ve hit a problem.
I am trying to render some js back to the page and have tried the following:
render_js
render :js => true
render :js => "alert(''test'');"
And I always seem to get my js returned as text.
I have also added in:
provides :js
I''m sure this is very simple but any pointers would be most
2010 Jul 14
3
`stack level too deep` when overwriting `to_json`
I''m using
[acts_as_commentable_with_threading](http://github.com/elight/acts_as_commentable_with_threading/),
and it worked fine until I tried to overwrite the to_json function to
include more details about the associated user.
Here''s part of the comment class (which was originally defined in the
plugin, but I moved it to the models folder, a move which seems not to
affect the