[Rails] Re: Some part of class in ActiveRecord

2015-07-22 Thread Julien Brochet
eung a écrit : > > > > On Wednesday, July 22, 2015 at 10:52:16 AM UTC+1, Julien Brochet wrote: >> >> Hello ! >> >> I've a question regarding Rails and Active Record. >> >> I've a class, for instance "Host" witch is populated wit

[Rails] Some part of class in ActiveRecord

2015-07-22 Thread Julien Brochet
Hello ! I've a question regarding Rails and Active Record. I've a class, for instance "Host" witch is populated with data from a remote API. I call a specific address and create my object. My object has a specific and unique ID. I would like to add additional data to this object. This dat

[Rails] Re: 'Learn Ruby on Rails' book is free today

2014-04-20 Thread Julien Itard
I don't find the link to DL your book for free. Where is it ? Le mercredi 27 novembre 2013 16:28:30 UTC+1, Daniel Kehoe a écrit : > > I’m offering the advance edition of my new book for free. > > Here's the link for *Learn Ruby on Rails*: > > * > *http://learn-rails.com/free-book-download.html*

[Rails] Re: Steps to develop a Rails app.

2014-03-07 Thread Julien Itard
Hi 1- Create 2 models: Student and Mark 2- Add relation between them. belongs_to :student in the Mark model and has_many :mark in the Student model 3- rake db:create && rake db:migrate 4- Create Controllers 5- Create Views 6- Create Routes maybe the rails 'generate scaffold Mark Student' coul

Re: [Rails] Rails book

2013-10-25 Thread Julien Itard
Thx ! I'll check it Le mercredi 23 octobre 2013 18:50:09 UTC+2, tamouse a écrit : > > > On Oct 22, 2013, at 2:40 PM, Julien Itard > > wrote: > > > Hi there, > > i'm a new RoR developer and i need your feedback about this book : > http://pragprog.com/b

[Rails] Rails book

2013-10-22 Thread Julien Itard
Hi there, i'm a new RoR developer and i need your feedback about this book : http://pragprog.com/book/rails4/agile-web-development-with-rails-4 Is it good for learning Rails ? I mean, i already read Michael Hartl tutorial. Is it useful to me to buy this book ? Are there other good books about Ra

Re: [Rails] update the index view ajax

2013-01-14 Thread Julien Estebane
Thanks Dheeraj but I don't think this is what im looking for as my app runs on heroku. I was hoping there would be a gem that solves this problem -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyon

[Rails] update the index view ajax

2013-01-14 Thread Julien Estebane
the database get dynamically updated in the background in the background by some external scripts/delayed jobs etc. How can I get the index view to dynamically update those attributes withought getting the user to manually refresh the web page? Merci, Julien -- You received this message

Re: [Rails] devise get current use in another controler

2013-01-04 Thread Julien Estebane
Thanks Dheeraj. That works! On Friday, January 4, 2013 4:05:13 PM UTC-5, Dheeraj Kumar wrote: > > current_user holds the current logged in user. > > -- > Dheeraj Kumar > > On Saturday 5 January 2013 at 2:28 AM, Julien Estebane wrote: > > Dear Rails folks, > >

[Rails] devise get current use in another controler

2013-01-04 Thread Julien Estebane
Dear Rails folks, I have a user that has_many items, and an item model that belongs_to user. In the controller for item, how do i access the current user that is logged in? it's very easy to access the current logged in user from when in the user controller/model/view with the @user variable, b

[Rails] Re: has_to and belongs_to realtionships are not showing up in database

2012-12-26 Thread Julien Estebane
25, 2012 9:25:17 PM UTC-5, Julien Estebane wrote: > > Hello, > > I am having what I might think is a basic problem...I can't get the > relationships of has_many and belongs_to mapped out correctly in the > database. I would expect, according to my MODEL and MIGRATION, t

[Rails] Re: has_to and belongs_to realtionships are not showing up in database

2012-12-26 Thread Julien Estebane
al' /home/user/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `' Tasks: TOP => db:migrate (See full trace by running task with --trace) On Wednesday, December 26, 2012 8:27:27 AM UTC-5, Frederick Cheung wrote: > > > > On Dec 26, 2:25 am, Julien Estebane wro

[Rails] has_to and belongs_to realtionships are not showing up in database

2012-12-26 Thread Julien Estebane
140", 3=>"2012-12-26 01:27:40.452140"}, {"id"=>2, "description"=>"stopping", "created_at"=>"2012-12-26 01:27:40.536188", "updated_at"=>"2012-12-26 01:27:40.536188", 0=>2, 1=>"stopping&q

[Rails] Re: How to use unicorn server on Rails 3

2011-03-10 Thread Julien Palmas
d, it does not work. This is because Rack misses a "Handler" for Unicorn. It already has one for Webrick, Thin, Mongrel and others, but not for Unicorn I could not find the handler with google and will try the Unicorn ML to ask Julien -- Posted via http://www.ruby-forum.com/. -

[Rails] Re: Hide/Show Div and link_to_remote

2011-02-17 Thread Julien
Maybe you can see to it by simply changing the style of your edit div from "display:none" to "display:block" using a simple javascript function if you don't like using javascript libraries. On 16 fév, 14:57, pepe wrote: > > Lets ignore the 'editable' form part.  In general how would I hide/ > >

[Rails] Re: Begining with RoR, litle questions

2011-02-16 Thread Julien
Hi, 1)Ruby is simple, clean and elegant, you can learn it while learning rails, it's nearly like speaking english. 2)you can use with Apache (http://www.modrails.com/) 3)i don't know PDO, but there is DB abstraction with Active Record http://guides.rubyonrails.org/active_record_querying.html, whic

[Rails] Re: Render partial generate unwanted spaces

2010-12-08 Thread Julien
On 7 déc, 21:54, bravehoptoad wrote: > > Just checking: > > UTF-8 without BOM: no problems > > UTF-8 with BOM: problems > > Right? > > Correct. > > > > > I've never seen this problem on *nix.  I wonder if it's an artifact of > > Windows' text handling routines. > > Yes, I strongly suspect, since t

[Rails] Re: Render partial generate unwanted spaces

2010-12-06 Thread Julien
On 6 déc, 20:50, Marnen Laibow-Koser wrote: > Julien wrote in post #966616: > > > On 6 dc, 15:28, Julien wrote: > >> > On 6 December 2010 11:03, Julien wrote: > >> > >> > text it's fine. > >> > >> firefox and you can see wh

[Rails] Re: Render partial generate unwanted spaces

2010-12-06 Thread Julien
On 6 déc, 15:28, Julien wrote: > On 6 déc, 12:30, Colin Law wrote: > > > > > > > > > > > On 6 December 2010 11:03, Julien wrote: > > > > On 6 déc, 09:53, Colin Law wrote: > > >> On 5 December 2010 22:44, Julien wrote: > > >

[Rails] Re: Render partial generate unwanted spaces

2010-12-06 Thread Julien
On 6 déc, 12:30, Colin Law wrote: > On 6 December 2010 11:03, Julien wrote: > > > > > > > > > > > On 6 déc, 09:53, Colin Law wrote: > >> On 5 December 2010 22:44, Julien wrote: > > >> > exact same poltergeist for me on rails 3.0.1

[Rails] Re: Render partial generate unwanted spaces

2010-12-06 Thread Julien
On 6 déc, 09:53, Colin Law wrote: > On 5 December 2010 22:44, Julien wrote: > > > exact same poltergeist for me on rails 3.0.1 and ruby 1.9.2. It adds > > some visible space in browser but completely invisible in the > > generated HTML. > > > it seems to be when

[Rails] Re: Render partial generate unwanted spaces

2010-12-05 Thread Julien
exact same poltergeist for me on rails 3.0.1 and ruby 1.9.2. It adds some visible space in browser but completely invisible in the generated HTML. it seems to be when the partial starts by a tag (like ""). It's not a space but a linebreak. If partial starts by basic simple text it's fine. I checke

[Rails] Re: Authenticated SSL communication between two rails apps

2010-05-24 Thread Julien Cornuwel
On 24 mai, 15:56, Peter De Berdt wrote: > On 24 May 2010, at 15:16, Julien Cornuwel wrote: > > > I've been gooogling around for quite some time now and I didn't find a > > solution. If I missed it, feel free to RTFM me (with a link, > > please) ;-) > > http

[Rails] Authenticated SSL communication between two rails apps

2010-05-24 Thread Julien Cornuwel
Hi, I've been gooogling around for quite some time now and I didn't find a solution. If I missed it, feel free to RTFM me (with a link, please) ;-) I want to make two rails apps (on different servers) able to communicate securely through SSL. Meaning, when app1 needs data from app2, it connects t

[Rails] Object.subclasses_of gone

2010-02-15 Thread Julien Palmas
Hi list, With Rails 3 beta, activesupport/lib/active_support/core_ext/object/extending.rb is gone, and with it Object.subclasses_of. Is there an official replacement for that ? Maybe in Ruby 1.8.7 ? Cordialement, Julien Palmas 05 82 95 00 73 06 07 47 85 87 jul...@cruxandco.com -- You

[Rails] Display ActiveRecord runtime info in the view

2009-12-21 Thread Julien Palmas
Hi list, In Rails logs, at the end of each request, the log states something like Completed in 37ms (View: 1, DB: 8) Is there a simple way to access the "DB: 8" info in the view ? Thanks Julien -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Extjs with rails

2009-10-11 Thread Julien Julien
Hi, I start to use extjs with rails, I begin with this tutorial : http://www.extjs.com/learn/Tutorial:Using_Ext_Grid_with_Ruby_on_Rails but the grid with data is not display in the screen,the file "grid-paging.js" in directory "/public/javascript/", i think that there is not the good directory fo

[Rails] Re: How to get a nice url hierarchy with slugs and acts_as_tree?

2009-10-01 Thread Julien ramel
Hi Emmek, I never found anything really convincing to handle that, but facing the same problem I found some workaround. So first to get a slug, I use the plugin "ActsAsUrlParam" http://github.com/caring/acts_as_url_param I use it on a page "model" that uses a custom acts_as_tree (with dotted

[Rails] Dynamic method delegation through polymorphic association

2009-09-11 Thread Julien
This is too much for my ruby skills level... Since i can't use multiple tables inheritance, i've been trying to implement some shared behaviour and state in an AR 'wrapper' model that delegates method calls to an associated business objects through a polymorphic association class CoreEntity < Act

[Rails] Re: Trigger an Ajax update from an external JS ?

2009-06-11 Thread Julien J.F.
bill walton wrote: > Hi Julien, > > On Thu, 2009-06-11 at 22:51 +0200, Julien J.F. wrote: >> forgot to add that the game is passing parameters to the JS functions, >> and i need to figure out a way to get these back to rails too... > > Rails is a framework for b

[Rails] Re: Trigger an Ajax update from an external JS ?

2009-06-11 Thread Julien J.F.
forgot to add that the game is passing parameters to the JS functions, and i need to figure out a way to get these back to rails too... -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[Rails] Re: Trigger an Ajax update from an external JS ?

2009-06-11 Thread Julien Julien
thanks for taking the time to answer bill, my post was indeed vague i must reckon, i'll try to clear things up. bill walton wrote: > For starters, what's a 'system component'? And whatever it is, is this > the thing that you want go get loaded when the user takes some action? well it's actua

[Rails] Trigger an Ajax update from an external JS ?

2009-06-11 Thread Julien Julien
I'm researching a project that uses a system component loaded on the page through a custom JS file. On defined user actions, this component will call a definable JS method, that i'd like to act in a link_remote_to fashion, to update some elements of the page. I'm just getting started with RAILS,

[Rails] Re: Re-using crontrollers with non-http requests

2008-10-14 Thread Julien Genestoux
Thanks Brian for this! That sounds good! A lot of work, but good, thanks for this! julien Brian Hogan wrote: > Controllers are designed (in MVC patterns) to process requests and > deliver > responses. Rails-based controllers are designed for HTTP request/ > response. > The an

[Rails] Re: Re-using crontrollers with non-http requests

2008-10-14 Thread Julien Genestoux
Hassan Schroeder wrote: > On Sun, Oct 12, 2008 at 12:01 AM, Julien Genestoux > <[EMAIL PROTECTED]> wrote: > >> The code that these pollers process looks a lot like some code in >> methods included in some of my rails application controllers. I wanted >> to DRY

[Rails] Re-using crontrollers with non-http requests

2008-10-12 Thread Julien Genestoux
Hi! I am creating a application that does a lot of background processing. For this I am using a queue (starling in my case...) and several pollers that will get a message from the queue and execute some code corresponding do it. The code that these pollers process looks a lot like some code in m

[Rails] Problem with authentication... Acts As Authenticated

2008-09-26 Thread Julien Genestoux
Hello, I am working on the API of our webservice. API users need to authenticate some of their calls... When I am performig the call through Firefox, everything is fine as shown in the log : Processing OwnershipsController#new (for 67.207.118.174 at 2008-09-26 16:20:03) [GET] Session ID: BAh7B