modify the way active record Pluralize/singularize

2013-03-22 Thread Francois Sery
hello, i'm new to Camping and i dont speek english very well so , please, forgive my mistakes...here is my question: i want to modify the way active record Pluralize/singularize my tables names. i have 2 classes: module Todo::models class Tache categorie) maCategorie.taches.create(:nom => nomPr

Re: modify the way active record Pluralize/singularize

2013-03-22 Thread Francois Sery
:Inflector.inflections do |inflect| > inflect.irregular 'tach', 'tache' > end > > See here for more examples: > http://api.rubyonrails.org/classes/ActiveSupport/Inflector/Inflections.html > > // Magnus Holm > > > On Fri, Mar 22, 2013 at 2:16 PM,

unit testing for the first time

2013-03-26 Thread Francois Sery
Bonjour, how can i unit test the methods from my module App:helpers ? i'm new to ruby and to unit testing , english is not my mother tongue. All that i know come from http://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing and M R . N E I G H B O R L Y ' S HUMBLE LITTLE RUBY BOOK i 've trie

emails from my camping app

2013-03-28 Thread Francois Sery
Hello, i'm looking for a gem to send emails from my camping app. Advices and code examples are welcome.Thanks. François ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: emails from my camping app

2013-03-28 Thread Francois Sery
Merci dave and julik. I'll try "pony" and "action mailer". François 2013/3/28 Julik Tarkhanov > Try Pony. > > On 28 mrt. 2013, at 14:01, Francois Sery wrote: > > i'm looking for a gem to send emails from my camping app.

charset for french words

2013-03-29 Thread Francois Sery
bonjour, i can't display french é ,ê, or à... how do i modify the charset of my app ? thanks François ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Omniauth and rack middleware

2013-10-22 Thread Francois Sery
Bonjour I m new to rack middleware and i dont know how to use with camping. My end goal is to use omniauth with a little camping app. Could you help me with existing examples or anything else ? Merci. ___ Camping-list mailing list Camping-list@rubyforge.o

how to handle >4K session in camping

2013-12-03 Thread Francois Sery
hi , i need some advices. I a little Camping app i have to store a cart in a session . i tried achieving it using the default camping/session but it is limited to 4K and my card miss some data. how can store more than 4k in a session ? thanks. ___ Campin

Re: how to handle >4K session in camping

2013-12-10 Thread Francois Sery
in the session. The > session is stored in a cookie, and everything you store there has to > be sent back and forth over the network. You can however store an ID > in the session and lookup data in your database. > > // Magnus Holm > > > On Tue, Dec 3, 2013 at 12:04 PM, Franco

Re: how to handle >4K session in camping

2013-12-10 Thread Francois Sery
r year or so go > and delete all the database records that are more than a week old in that > table. Storage is so cheap these days! > > — > Bluebie > > On Tuesday, 10 December 2013 at 9:29 pm, Francois Sery wrote: > > Bonjour, > Thanks for your help. Here is how i've

how do i customize the 404 "campin problem" page?

2013-12-10 Thread Francois Sery
Bonjour, one more newbie question: how do i customize the 404 "campin problem" page? i cant' find the answer anywhere else. i've read about the @status and @headers but i don't kwow how to "capture" the error ? maybe a special route ? Thanks again for your help !

2 differents layout for my app

2013-12-10 Thread Francois Sery
(re)bonjour, is there a simple / elegant way to have 2 differents layouts for my app. All the solutions i think of seems unmanageable and not very smart. (re)merci ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/li

Re: 2 differents layout for my app

2013-12-10 Thread Francois Sery
@deveritt: i dont want to switch css. My app has a "front end" and an "admin ". The front end is the public face of my app and th e'admin' is where i manage the content. the visual design of these 2 part are very different and it would be nice to have 2 independant layout . maybe, i don't even k

Re: how do i customize the 404 "campin problem" page?

2013-12-31 Thread Francois Sery
Thanks judofyr Le 31 déc. 2013 16:03, "Magnus Holm" a écrit : > Sorry for the late reply. > > Here's how you override the 404: > > module YourApp > def r404(path) > "My custom 404" > end > end > > // Magnus Holm > > > On

Deploy on amzn elastic beanstalk

2014-01-10 Thread Francois Sery
Hello campers I want to deploy a camping app on amazon elastic beanstalk. The example from amazon use git and other specific tool but ther is anothet possility to upload a zipped app. I ve tried with a .ru an .rb a and a gemfile that worked fine on heroku but it doesnt work on amzn beanstalk. Im l

camping app on elastic beanstalk

2014-01-14 Thread Francois Sery
Bonjour les Campers, i need help deploying a camping app on AWS with elastic beanstalk. i can run a simple "hello camping app" with do database and only one controller on elasticbeanstalk.But when i add migration, model ,schema creation and update the gemfile it doesn't work anymore. the ap

Re: camping app on elastic beanstalk

2014-01-17 Thread Francois Sery
ted?(klass) 6. conn = retrieve_connection_pool(klass) 7. conn && conn.connected? 2014/1/15 arca0 > Hi Francois, > it looks like your db configuration is somehow wrong. Care to submit more > information about that? How does your db config look? > alex > >

Re: camping app on elastic beanstalk

2014-01-17 Thread Francois Sery
yes ! the answer is 3.6.20 2014/1/17 arca0 > does your elastic beanstalk instance have sqlite3 installed? can you run > sqlite3 > --version on it? > > > On 17 January 2014 09:07, Francois Sery wrote: > >> Bonjour, >> here is my app code and

Re: camping app on elastic beanstalk

2014-01-22 Thread Francois Sery
perly? >> >> You really got me curious here ;D Please be sure to let me know if you >> manage to solve the problem :) >> >> >> On 17 January 2014 11:35, Francois Sery wrote: >> >>> yes ! the answer is 3.6.20 >>> >>> >>> 2014/1/

Mab::Mixin::Error This tag is already closed

2014-01-24 Thread Francois Sery
Bonjour, it's me again. Deploying a camping app on amazon ec2 i have a Mab::Mixin::Error at /admin/personnes This tag is already closed the app works fine on my local machine but not on ec2(just the same as my last message!). The mab gem version number is the same so i have no idea of what it cou

Re: Mab::Mixin::Error This tag is already closed

2014-01-24 Thread Francois Sery
fier",:class=> "btn btn-mini btn-primary", :href => R(AdminPersonnesUpdateX, personne.id) } end end end end 2014/1/24 Magnus Holm > Interesting. Could you post the personnes_list template? > > // Magnu