Questions tagged [catalyst]

Catalyst is a Perl web application framework, similar to Ruby on Rails, Spring (Java), and Maypole.

Catalyst is an elegant web application framework written in the Perl programming language, extremely flexible yet extremely simple. It's similar to Ruby on Rails, Spring (Java), and Maypole, upon which it was originally based. Its most important design philosphy is to provide easy access to all the tools you need to develop web applications, with few restrictions on how you need to use these tools.

http://www.catalystframework.org/

Resources to learn Catalyst:

Useful Links:

524 questions
5
votes
1 answer

DBIx::Class::ResultSet Update or Create on multiple unique constraints

I was wondering if it is possible update_or_create on multiple unique constraints in dbix Ex From Cpan: my $cd = $schema->resultset('CD')->update_or_create( { artist => 'Massive Attack', title => 'Mezzanine', year => 1998, …
shaneburgess
  • 15,702
  • 15
  • 47
  • 66
5
votes
2 answers

How can I deploy my Catalyst application as a debian package (or suitable alternative)?

After testing my Catalyst application and deciding to deploy it I would like to package it up so I can easily pull it in on the staging and live servers, manage dependencies and easily roll-back via the flexibility of package versioning. As my…
cubabit
  • 2,527
  • 3
  • 21
  • 34
5
votes
2 answers

Replace underscores with hyphens in Perl Catalyst URLs

We're looking at options for converting CamelCase to camel-case and underscores to hyphens and hoping someone can offer some strong examples. (Using hyphens for SEO reasons). Specifically: Working on an MMORPG in Catalyst and getting tired of having…
Ovid
  • 11,580
  • 9
  • 46
  • 76
5
votes
5 answers

Is Catalyst+Mason+Template::Toolkit worth learning rather than sticking to LAMP+Axkit?

Currently i'm using pretty much Unix + Mysql + Perl + Apache with some javascript to make it more ajax like. and i've been looking at sites which are web 2.0 and stackoverflow and really like the simple design and the smooth flow from pages and…
melaos
  • 8,386
  • 4
  • 56
  • 93
5
votes
1 answer

Catalyst & Perl - Generate models in runtime

I'm working on an application that will generate database tables on runtime. I'm using Catalyst with DBIC and I need that when a new table is generated a new ResultSet is generated. This new ResultSet has to be added as a Catalyst Model so I can…
Wang
  • 51
  • 2
5
votes
3 answers

Perl Catalyst - Obtaining JSON data from AJAX POST request

I am trying to obtain the JSON data that is sent to the server via an AJAX POST when a button is clicked on my homescreen page on my Catalyst application: The AJAX POST that sends the JSON data to the server: $("#saveCanvasStates").click(function ()…
yonetpkbji
  • 1,019
  • 2
  • 21
  • 35
5
votes
1 answer

How can I expose many-to-many tag-style relationship in a Catalyst app?

I'm building a database application in Catalyst, using jqGrid to do the messy work of handling the display of data. I've got almost everything working, except for being able to filter search results by "tags". I have three tables, with relationships…
ruok
  • 53
  • 1
  • 3
5
votes
1 answer

Anomalous push behaviour under Catalyst MVC

I would expect the following code my @array; for my $rapport ( qw( value1 value2 value3 ) ) { push @array, { key => $rapport }; } to produce: $VAR1 = [ { 'key' => 'value1' }, { 'key' => 'value2' }, …
Mauritz Hansen
  • 4,674
  • 3
  • 29
  • 34
5
votes
1 answer

In Perl, would keeping a reference to Catalyst's $c in an attribute cause a memory leak?

I started off writing some Perl code using Catalyst that looked like this: package My::Controller; extends 'Catalyst::Controller'; sub handler :Path :Args(0) :Location( some/url ) my ($self, $c) = @_; …
Will Sheppard
  • 3,272
  • 2
  • 31
  • 41
5
votes
1 answer

Is there a way to use a testing database in catalyst

When using catalyst is there a way to specify a dev, test and production database like you would in Rails? I have looked through the documentation but I haven't found an answer.
dflower
  • 83
  • 1
  • 4
5
votes
2 answers

DBIx::Class get the dbh

I'm using DBIx::Class in a Catalyst app I am building. It works great, but sometimes I need to use my own db functions that I've developed that are very specific to my needs. Because of this, I need a dbh. However, since I'm already using…
srchulo
  • 5,143
  • 4
  • 43
  • 72
5
votes
1 answer

Catalyst::Plugin::StatusMessage across multiple 'app' servers

So I'm using Catalyst::Plugin::StatusMessage in my Catalyst app. The only issue is that right now I have a load balancer with two app servers behind it, both running catalyst. Because of this, if a status message is set on one app server, and then…
srchulo
  • 5,143
  • 4
  • 43
  • 72
5
votes
4 answers

What's wrong with using a framework that has a lot of dependencies?

I recently told a friend that I was starting to learn Catalyst (Perl) and he fairly strongly emphasized that because Catalyst has so freakin' many dependencies, I should use something like Rails instead. Isn't that a good thing that there are a lot…
hourback
  • 1,150
  • 4
  • 12
  • 27
5
votes
1 answer

DBIx::Class example

In this example below: my $rs = $schema->resultset('CD')->search( { 'artist.name' => 'Bob Marley' 'liner_notes.notes' => { 'like', '%some text%' }, }, { join => [qw/ artist liner_notes /], order_by => [qw/ artist.name /], } ); The DBIx…
srchulo
  • 5,143
  • 4
  • 43
  • 72
4
votes
1 answer

Removing Perl Catalyst framework

Is there a simple way to uninstall Perl's Catalyst framework? It seems like there are tons of ways to install it, but not much on cleanly removing it.
Slamice
  • 693
  • 1
  • 9
  • 25