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 could be. Any idea ?

Merci






Traceback (innermost first)

   - /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
   _insert
   1. raise Error, This tag is already closed if @_done...
- /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
   method_missing
   1. _insert(*args, blk)...
- (eval): in mab_done
   - /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
   _insert
   1. @_instance.mab_done(self) if @_done...
- (eval): in a
   - ressource_personne.rb: in personnes_list
   1. a Nouveau personnes, :class= btn btn-mini btn-primary, :href =
  R(AdminPersonnesCreate)...
- main: in block in render
   - /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
   instance_eval
   1. res = instance_eval(blk)...
- /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in mab
   1. res = instance_eval(blk)...
- main: in mab
   - main: in render
   - ressource_personne.rb: in get
   1. render :personnes_list...
- main: in block in service
   - main: in catch
   - main: in service
   - /var/app/current/app.rb: in service
   1. super...
- main: in call
   -
   /usr/share/ruby/1.9/gems/1.9.1/gems/rack-1.5.2/lib/rack/showexceptions.rb:
   in call
   1. @app.call(env)...
-
   
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/rack/thread_handler_extension.rb:
   in process_request
   1. status, headers, body = @app.call(env)...
-
   
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/request_handler/thread_handler.rb:
   in accept_and_process_next_request
   1. process_request(headers, connection, socket_wrapper, @protocol ==
  :http)...
-
   
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/request_handler/thread_handler.rb:
   in main_loop
   1. hijacked = accept_and_process_next_request(socket_wrapper, channel,
  buffer)...
-
   
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/request_handler.rb:
   in block (3 levels) in start_threads
   1. handler.main_loop(set_initialization_state_to_true)
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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

2014-01-24 Thread Francois Sery
here is  the view. i don't know if it is important but the file  containig
this code is loaded from another file.


def personnes_list
h1 Toute les personnes
a ''Nouvelle personnes'', :class= ''btn btn-mini btn-primary'',
:href = R(AdminPersonnesCreate)

table :class =table do
@personnes.each do |personne|
tr do
td personne.id
td {b personne.nom }
td {a voir,:class= btn btn-mini btn-primary, :href
= R(AdminPersonnesX, personne.id)
 }
td {a supprimer,:class= btn btn-mini btn-primary,
:href = R(AdminPersonnesDeleteX, personne.id)
}
td {a modifier,:class= btn btn-mini btn-primary,
:href = R(AdminPersonnesUpdateX, personne.id)
}
end
end

end

end


2014/1/24 Magnus Holm judo...@gmail.com

 Interesting. Could you post the personnes_list template?

 // Magnus Holm


 On Fri, Jan 24, 2014 at 12:51 PM, Francois Sery sery.franc...@gmail.com
 wrote:
  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 could be. Any idea ?
 
  Merci
 
 
 
 
 
 
  Traceback (innermost first)
 
  /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
 _insert
 
  raise Error, This tag is already closed if @_done...
 
  /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
  method_missing
 
  _insert(*args, blk)...
 
  (eval): in mab_done
  /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
 _insert
 
  @_instance.mab_done(self) if @_done...
 
  (eval): in a
  ressource_personne.rb: in personnes_list
 
  a Nouveau personnes, :class= btn btn-mini btn-primary, :href =
  R(AdminPersonnesCreate)...
 
  main: in block in render
  /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in
  instance_eval
 
  res = instance_eval(blk)...
 
  /usr/share/ruby/1.9/gems/1.9.1/gems/mab-0.0.3/lib/mab/mixin.rb: in mab
 
  res = instance_eval(blk)...
 
  main: in mab
  main: in render
  ressource_personne.rb: in get
 
  render :personnes_list...
 
  main: in block in service
  main: in catch
  main: in service
  /var/app/current/app.rb: in service
 
  super...
 
  main: in call
 
 /usr/share/ruby/1.9/gems/1.9.1/gems/rack-1.5.2/lib/rack/showexceptions.rb:
  in call
 
  @app.call(env)...
 
 
 /usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/rack/thread_handler_extension.rb:
  in process_request
 
  status, headers, body = @app.call(env)...
 
 
 /usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/request_handler/thread_handler.rb:
  in accept_and_process_next_request
 
  process_request(headers, connection, socket_wrapper, @protocol ==
 :http)...
 
 
 /usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/request_handler/thread_handler.rb:
  in main_loop
 
  hijacked = accept_and_process_next_request(socket_wrapper, channel,
  buffer)...
 
 
 /usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/request_handler.rb:
  in block (3 levels) in start_threads
 
  handler.main_loop(set_initialization_state_to_true)
 
 
 
  ___
  Camping-list mailing list
  Camping-list@rubyforge.org
  http://rubyforge.org/mailman/listinfo/camping-list
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: camping app on elastic beanstalk

2014-01-22 Thread Francois Sery
Thanks for your help: it works !
I thought that the app.create  was automatically called...but i was wrong.
now i call the create methOd from config.ru. i don't know if it is the best
solution... but it works.

Francois


2014/1/17 Tim Uckun timuc...@gmail.com

 If you run the migrations it should create the database for you.


 On Sat, Jan 18, 2014 at 3:46 AM, arca0 arcaz...@gmail.com wrote:

 ok, I'm an absolute newbie myself so I'm just guessing away here, but
 since nobody else is responding, here goes ;D

 I can't see a single line of code that would be responsible for creating
 the db file. Is the app.db file in your project directory on the instance?
 If not, can you try copying it from the local environment to see if it
 fixes the problem?
 Also, are you sure sqlite3 gem has built native extensions properly?

 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 sery.franc...@gmail.com wrote:

 yes ! the answer is 3.6.20


 2014/1/17 arca0 arcaz...@gmail.com

 does your elastic beanstalk instance have sqlite3 installed? can you
 run sqlite3 --version on it?


 On 17 January 2014 09:07, Francois Sery sery.franc...@gmail.comwrote:

 Bonjour,
  here is my app code and  the trace. thanks for your help.



 #app.rb
 require 'camping'
 require 'sqlite3'

 Camping.goes :App



  module App::Models
  #models


 class Personne  Base

 end

  #migrations

 class BasicFields  V 1.0
 def self.up
 create_table Personne.table_name do |t|
 t.string :nom
 t.text :prenom
 t.timestamps

 end

 end

 def self.down
 drop_table Personne.table_name

 end


 end


  end

 module App::Controllers
 class Index
 def get

 @env.inspect
 end
 end
 class Create
 def get
 Personne.create :nom = 'super', :prenom ='man'
 redirect R(Index)

 end
 end
 end


 def App.create

 App::Models::Base.establish_connection(
 :adapter ='sqlite3',
 :database = 'app.db'

 )

 end


 #
 and the trace (546)

-

 /usr/share/ruby/1.9/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:
in retrieve_connection
1.
   2. # Locate the connection of the nearest super class. This can
   be an
   3. # active or defined connection: if it is the latter, it will
   be
   4. # opened and set as the active connection for the class it
   was defined
   5. # for (not necessarily the current class).
   6. def retrieve_connection(klass) #:nodoc:
   7. pool = retrieve_connection_pool(klass)
1. (pool  pool.connection) or raise ConnectionNotEstablished...
1. end
   2.
   3. # Returns true if a connection that's accessible to this
   class has
   4. # already been opened.
   5. def connected?(klass)
   6. conn = retrieve_connection_pool(klass)
   7. conn  conn.connected?





 2014/1/15 arca0 arcaz...@gmail.com

 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

 From: Francois Sery sery.franc...@gmail.com
 Date: 15 January 2014 08:10
 Subject: camping app on elastic beanstalk
 To: camping-list@rubyforge.org



 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 app works fine on my local machine but not on beanstalk .I dont
 understand  what is different from my local machine ?
 Its the first time I deploy  an app so every advices are welcome.
 here is the message from the log

 *** Exception ActiveRecord::ConnectionNotEstablished in Rack 
 application object (ActiveRecord::ConnectionNotEstablished)









 Thanks



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list

Re: camping app on elastic beanstalk

2014-01-17 Thread Francois Sery
Bonjour,
 here is my app code and  the trace. thanks for your help.



#app.rb
require 'camping'
require 'sqlite3'

Camping.goes :App



 module App::Models
 #models


class Personne  Base

end

 #migrations

class BasicFields  V 1.0
def self.up
create_table Personne.table_name do |t|
t.string :nom
t.text :prenom
t.timestamps

end

end

def self.down
drop_table Personne.table_name

end


end


 end

module App::Controllers
class Index
def get

@env.inspect
end
end
class Create
def get
Personne.create :nom = 'super', :prenom ='man'
redirect R(Index)

end
end
end


def App.create

App::Models::Base.establish_connection(
:adapter ='sqlite3',
:database = 'app.db'

)

end


#
and the trace (546)

   -
   
/usr/share/ruby/1.9/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:
   in retrieve_connection
   1.
  2. # Locate the connection of the nearest super class. This can be an
  3. # active or defined connection: if it is the latter, it will be
  4. # opened and set as the active connection for the class it was
  defined
  5. # for (not necessarily the current class).
  6. def retrieve_connection(klass) #:nodoc:
  7. pool = retrieve_connection_pool(klass)
   1. (pool  pool.connection) or raise ConnectionNotEstablished...
   1. end
  2.
  3. # Returns true if a connection that's accessible to this class has
  4. # already been opened.
  5. def connected?(klass)
  6. conn = retrieve_connection_pool(klass)
  7. conn  conn.connected?





2014/1/15 arca0 arcaz...@gmail.com

 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

 From: Francois Sery sery.franc...@gmail.com
 Date: 15 January 2014 08:10
 Subject: camping app on elastic beanstalk
 To: camping-list@rubyforge.org



 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 app works fine on my local machine but not on beanstalk .I dont
 understand  what is different from my local machine ?
 Its the first time I deploy  an app so every advices are welcome.
 here is the message from the log

 *** Exception ActiveRecord::ConnectionNotEstablished in Rack application 
 object (ActiveRecord::ConnectionNotEstablished)




 Thanks



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: camping app on elastic beanstalk

2014-01-17 Thread Francois Sery
yes ! the answer is 3.6.20


2014/1/17 arca0 arcaz...@gmail.com

 does your elastic beanstalk instance have sqlite3 installed? can you run 
 sqlite3
 --version on it?


 On 17 January 2014 09:07, Francois Sery sery.franc...@gmail.com wrote:

 Bonjour,
  here is my app code and  the trace. thanks for your help.



 #app.rb
 require 'camping'
 require 'sqlite3'

 Camping.goes :App



  module App::Models
  #models


 class Personne  Base

 end

  #migrations

 class BasicFields  V 1.0
 def self.up
 create_table Personne.table_name do |t|
 t.string :nom
 t.text :prenom
 t.timestamps

 end

 end

 def self.down
 drop_table Personne.table_name

 end


 end


  end

 module App::Controllers
 class Index
 def get

 @env.inspect
 end
 end
 class Create
 def get
 Personne.create :nom = 'super', :prenom ='man'
 redirect R(Index)

 end
 end
 end


 def App.create

 App::Models::Base.establish_connection(
 :adapter ='sqlite3',
 :database = 'app.db'

 )

 end


 #
 and the trace (546)

-

 /usr/share/ruby/1.9/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:
in retrieve_connection
1.
   2. # Locate the connection of the nearest super class. This can be
   an
   3. # active or defined connection: if it is the latter, it will be
   4. # opened and set as the active connection for the class it was
   defined
   5. # for (not necessarily the current class).
   6. def retrieve_connection(klass) #:nodoc:
   7. pool = retrieve_connection_pool(klass)
1. (pool  pool.connection) or raise ConnectionNotEstablished...
1. end
   2.
   3. # Returns true if a connection that's accessible to this class
   has
   4. # already been opened.
   5. def connected?(klass)
   6. conn = retrieve_connection_pool(klass)
   7. conn  conn.connected?





 2014/1/15 arca0 arcaz...@gmail.com

 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

 From: Francois Sery sery.franc...@gmail.com
 Date: 15 January 2014 08:10
 Subject: camping app on elastic beanstalk
 To: camping-list@rubyforge.org



 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 app works fine on my local machine but not on beanstalk .I dont
 understand  what is different from my local machine ?
 Its the first time I deploy  an app so every advices are welcome.
 here is the message from the log

 *** Exception ActiveRecord::ConnectionNotEstablished in Rack application 
 object (ActiveRecord::ConnectionNotEstablished)






 Thanks



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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 app works fine on my local machine but not on beanstalk .I dont
understand  what is different from my local machine ?
Its the first time I deploy  an app so every advices are welcome.
here is the message from the log

*** Exception ActiveRecord::ConnectionNotEstablished in Rack
application object (ActiveRecord::ConnectionNotEstablished)

Thanks
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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 looking for
a tut or some valuable ressources on deploying camping or rack app on ebs .
Can anybody help me ? Thanks.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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 judo...@gmail.com 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 Tue, Dec 10, 2013 at 12:32 PM, Francois Sery sery.franc...@gmail.com
 wrote:
  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 !
 
  ___
  Camping-list mailing list
  Camping-list@rubyforge.org
  http://rubyforge.org/mailman/listinfo/camping-list
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: how to handle 4K session in camping

2013-12-10 Thread Francois Sery
Bonjour,
Thanks for your help. Here is how i've modified my app.
now i have
 - a 'session' model
- a  sessions table with a column for my data...
- a session cookie: @state[:sessionid]=SecureRandom.hex
It works as wanted but i have one more question.

how do you handle all the obsolete sessions in the database ?  my code
already delete some sessions. but  some  other sessions can't be deleted
from the flow of my app.  What are the available solutions?  cron ? or
something else maybe?

Merci.




2013/12/7 Bluebie a...@creativepony.com

  If you fill the session cookie with 4kb of data, that means every http
 request after that to that domain will require the user to upload 4kb of
 data, which may not seem like much, but on a mobile phone for instance,
 loading a page with 50 images, that becomes 4*50 = 200kb - pretty
 significant considering most home internet connections do not have very
 fast upload in many countries. On my own internet on a good day that’s at
 least 2 seconds of uploading.

 So it is best to use session cookies only to store a very small
 identifier, then store more information in a local database or file. If you
 have a look in the rack project you’ll see some other session handlers
 which do exactly this, so you can keep writing data in to the ‘session’ but
 have it stored locally, with only a small cookie with an ID number to
 lookup the local data stored in to the browser.

 —
 Bluebie

 On Saturday, 7 December 2013 at 8:27 am, Charles McKnight wrote:

 Sure wish the W3C would devise a better state mechanism than cookies...

 On Dec 6, 2013, at 12:49 PM, Magnus Holm judo...@gmail.com wrote:

 You should not store a large amount of data 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, Francois Sery sery.franc...@gmail.com
 wrote:

 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.

 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list


 The game's afoot. Follow your spirit, and upon this charge, cry God for
 Harry, England, and St. George. --- Sherlock Holmes

 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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/listinfo/camping-list

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
know if it is possible , i could run 2 distinct app sharing the same
database or something like that. what do you think ?


2013/12/10 dever...@innotts.co.uk

 If the markup is semantic and nicely-structured, I'd simply do a CSS
 switch that uses local storage to persist between visits, as I've done here
 for the colour theme (http://ee.ecoconsulting.co.uk/ switch, top right)
 but expanded to div widths, etc. Is that what you meant? - DaveE
 --
 Email sent using Kcom WebMail - Email, Groupware and Calendaring done
 right.

 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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.
___
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.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: emails from my camping app

2013-03-29 Thread Francois Sery
Merci dave and julik. I'll try pony and action mailer.
François


2013/3/28 Julik Tarkhanov julian.tarkha...@gmail.com

 Try Pony.

 On 28 mrt. 2013, at 14:01, Francois Sery sery.franc...@gmail.com wrote:

 i'm looking for a gem to send emails from my camping app.



 --
 Julik Tarkhanov
 m...@julik.nl




 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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

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

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 Base
belongs_to :categorie
end

class Categorie Base
 has_many :taches
end
end

tache and categorie are french words. their plural form are  taches
and categories .

when i write:
...
maCategorie=Categorie.create(:nom = categorie)
maCategorie.taches.create(:nom = nomPropre)
...

I  have an unitialized constant Todo::Models::Categorie::Tach error
message.

i think  activerecord infers that the singular for taches is tach
instead of tache. or maybe it's something else.
any idea ?

thanks

François
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: modify the way active record Pluralize/singularize

2013-03-22 Thread Francois Sery
thanks a lot ! IT works perfectly !

François


2013/3/22 Magnus Holm judo...@gmail.com

 Hey François,

 I would advice you to use English terms even though it's not your mother
 tongue.

 However, if you must, it's pretty easy to add custom inflections:

 ActiveSupport::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, Francois Sery sery.franc...@gmail.com
 wrote:
  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 Base
  belongs_to :categorie
  end
 
  class Categorie Base
   has_many :taches
  end
  end
 
  tache and categorie are french words. their plural form are  taches
  and categories .
 
  when i write:
  ...
  maCategorie=Categorie.create(:nom = categorie)
  maCategorie.taches.create(:nom = nomPropre)
  ...
 
  I  have an unitialized constant Todo::Models::Categorie::Tach error
  message.
 
  i think  activerecord infers that the singular for taches is tach
  instead of tache. or maybe it's something else.
  any idea ?
 
  thanks
 
  François
 
 
 
  ___
  Camping-list mailing list
  Camping-list@rubyforge.org
  http://rubyforge.org/mailman/listinfo/camping-list
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list