similar to: Merb constants

Displaying 20 results from an estimated 2000 matches similar to: "Merb constants"

2008 Feb 07
2
Catching non-Merb::ControllerExceptions Exceptions
Is there an agreed upon method for handling exceptions thrown by something outside of Merb? For example, DataMapper now throws a DataMapper::ObjectNotFoundError when a record isn''t found in the db. I''d like to catch these exceptions and raise a C:E:NotFound exception instead, but without having to wrap a lot of code in begin/rescue/end blocks. Thanks, Mike Irwin
2007 Feb 07
2
mongrel_in_a_tunnel
Hi list: I started to make a quick GemPlugin command [ssl::start] that sets up an stunnel before calling the normal [start] command. so $ mongrel_rails ssl:start will do everything that start normally does and configure/setup an stunnel. The question... Obviously this plugin will require stunnel to be installed. What do you think is the best move: 1) nothing, just require that people
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 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
2008 Jan 10
0
local variable simulation in partials
Hey people.. I often hit name clashes when using partials, take the following example... <%= partial :clip, :url => ''http://www.jeff.com'' %> I will not be able to access my url variable, because the local variable will not override the #url method. This is contradictory to how most "local" variables work. Can I fix this, or is this behavior for some other
2007 Mar 09
0
Merb + attachment_fu
Merbists, I saw a note in the attachment_fu source code regarding supporting Merb[1] as well as a post on the Caboose forum[2]. Has anyone gotten Merb working with Rick Olson''s attachment_fu to handle uploads for a Rails app? I''ve hacked together something, but it''s not pretty. Besides fixing the TODO mentioned in the attachment_fu source code to support Merb
2007 Nov 16
9
Challenge
The original: http://pastie.textmate.org/private/lqvrlyyvkv2kbugoxtiz6w Send your submissions to me by email or on #merb. I''ll blog it, and pick a winner. The winner does not mean it makes it into Merb, just means I personally like it best. But it might make it into Merb. # Scenario: # You have a simple application that lists all the monkeys at the zoo. # Every monkey has a
1999 Jun 08
4
Early warning wrt Win2K
It looks like Microsoft buggered up Win2000 so that explorer hangs while trying to view a directory on a Samba server. I can't experiment any more since I removed Win2K beta 3, but I thought I'd give the list a warning. -- Ben Kosse <bkosse@thecreek.com> PC Technician -- Coldwater Creek, Inc. (208) 265-7114
2007 Oct 13
1
Formatted Routes?
Is anyone using formats with the url generator in trunk? I can''t figure it out and it seems to be unimplemented in the router code. I want to do something like url(:articles, :format => "xml") # => /articles.xml or url(:formatted_articles, :format => "xml") -- Geoffrey Grosenbach ........................ PeepCode Screencasts http://peepcode.com
2007 Mar 04
1
My last post buggered - FWD about patch version2
No idea why my last post buggered, so here's what I meant to send (attached is his actual patch): Hi! I made a little patch I'd like to see integrated (if appropriate) which makes Compiz usable in desktop+TV-out setups. It adds the --only-current-screen option to compiz which tell it to only manage the screen defined by $DISPLAY and leave the others alone. With
2007 Dec 13
1
How to set response code
Hi ! I''m trying to return a simple 201 Created status to the caller, but I can''t seem to do it. I use curl from the command line with the --verbose option, and the response is really 200 OK. My controller code: class Observations < Application def create(feature, node, observation_type) # Do some work... response.status = "201 Created"
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
2008 Mar 02
1
(Noob) Image upload: rename file
Hi! I''m building an app where the user can upload images. this works fine and the uploaded file is copied from the temp directory to an MerbRoot/uploads/id directory. my problem is that the filename is something like Merb.5288.0. How can I rename it? my model is available at pastie.<http://pastie.caboo.se/160143> I''m sure this question is not too sophisticated (-; regards
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 --------------
2004 Aug 06
3
Error: Client not receiving data fast enough
Hmmm, I am using Winamp for my client, will upgrade it, but it works for other shoutcast/icecast streams. There has to be something buggered up in my config somewhere. It sounds as if Ices is sending data too quickly to icecast(?), will blow it away and re-complie it and see what happens. Thanks for the help so far. yeah, essentialmix.ca is directly related to the Essential mix broadcasts off
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
2019 Jun 25
1
Help! Extlinux no longer bootable after reorder disk numbers
I split one partition, then my hard drive partitions and my partition numbers are listed in the wrong order and I fixed them <https://journalxtra.com/linux/how-to-reorder-linux-drive-partition-numbers/> so they run sequentially from lowest to highest. And the problem is, as the article <https://journalxtra.com/linux/how-to-reorder-linux-drive-partition-numbers/> has warned, my disks
2004 Jan 24
1
Asterisk RPMS for RH9 + RH7.3
Hello all, It's my birthday today, so as my present I would like everyone possible to download and test my updated set of RPMS for Asterisk 0.7.1. By popular request, I installed and built a set of RPMS for RedHat 9.0, and in the process fixed a bunch of issues from the initial build. I have also updated and will be maintaining a page on the Asterisk Wiki located at:
2005 May 01
4
using ActiveLDAP with Rails?
Now I''m a ruby nooby so be gentle... I''ve gotten ActiveLDAP working from the command line, but buggered if I can work out how on earth to integrate an ActiveLDAP object with a bunch of ActiveRecord objects. This is going to be possible right? I''m just going to have to build the whole scaffold myself for these objects? Just thought I''d check whether it
2008 Mar 10
0
Vancouver.rb Q&A with Brock Whitten on Rails, Getting Off Rails (Merb), PmpknPi (Blog in Merb) and More (Part I)
Hello, I''ve published a Q&A in the Vancouver.rb series with Brock Whitten. Questions include: * How did you get started with Ruby on Rails? What makes Ruby on Rails a great choice for developing web applications/sites? * Can you tell us some challenges you''ve faced developing using Ruby on Rails? * Off the Rails - Can you tell us a little bit about Merb? How