[Rails] [ANN] Respect for Rails 0.1.0 is out!

2013-05-21 Thread Nicolas Desprès
Hi, Just to let you know that I have just released a new Rails plug-in called: Respect for Rails. Never feel the need to document your REST API while still developing it because a colleague of yours is making a mobile app client at the same time? If yes, then this gem is for you. You: - describe

[Rails] How to iterate over an application route set?

2013-04-12 Thread Nicolas Desprès
s there a public API that would be maintain across different rails releases that I could use? Thanks in advance, -- Nicolas Desprès -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop rece

Re: [Rails] Re: How to factor this code ? (not trivial)

2013-03-12 Thread Nicolas Desprès
On Tue, Mar 5, 2013 at 10:37 AM, Nicolas Desprès wrote: > > > On Mon, Mar 4, 2013 at 7:36 PM, Frederick Cheung < > frederick.che...@gmail.com> wrote: > >> On Monday, March 4, 2013 12:59:23 PM UTC, Nicolas Desprès wrote: >> > Hi, >> > >> >

Re: [Rails] Self Teaching NEWBIE question - Console issue

2013-03-12 Thread Nicolas Desprès
by default on Windows. You can either try to install it or disable it by adding this to your .irbrc file: IRB.conf[:USE_READLINE] = false Cheers, -- Nicolas Desprès -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from thi

Re: [Rails] Re: Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread Nicolas Desprès
; email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/q3KtqtiU4RoJ. > > For more options, visit

Re: [Rails] Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread Nicolas Desprès
gt; > Would anyone know how to fix this problem? > Could you give us more hints on what you have done, please? Which steps did you follow? What errors did you get? Start by telling us what you have when you type rbenv install 2.0.0-p0 -- Nicolas Desprès -- You received this message beca

Re: [Rails] Re: How to factor this code ? (not trivial)

2013-03-05 Thread Nicolas Desprès
On Mon, Mar 4, 2013 at 7:36 PM, Frederick Cheung wrote: > On Monday, March 4, 2013 12:59:23 PM UTC, Nicolas Desprès wrote: > > Hi, > > > > > > Constraints: > > - The "id" function has to call "integer" and not "store_result" because

[Rails] How to factor this code ? (not trivial)

2013-03-04 Thread Nicolas Desprès
Hi, I'm having trouble to factor some simple code. Since, I have been stuck for several days now I ask the question here. # Beginning of code module DefWithName def integer(name, options = {}) store_result name, MyInteger.new(options) end def id(name) integer(name, an_options: true

Re: [Rails] Patch Rails 1.2.3 for latest vulnerabilities?

2013-02-04 Thread Nicolas Desprès
ntained version of rails is the best long term option. Cheers, -- Nicolas Desprès -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-

Re: [Rails] Facebook login on mobile app through a rails app

2013-01-28 Thread Nicolas Desprès
en]) user_info = ActiveSupport::JSON.decode(token.get('/me').body) (the user info are used to create the entry in the DB) 3/ sign in using Devise method: sign_in @user, :event => :authentication #this will throw if @user is not activated The access token is then stored in the sess

Re: [Rails] Facebook login on mobile app through a rails app

2013-01-28 Thread Nicolas Desprès
On Mon, Jan 21, 2013 at 12:10 PM, Nicolas Desprès wrote: > > > On Mon, Jan 21, 2013 at 11:41 AM, Nicolas Desprès < > nicolas.desp...@gmail.com> wrote: > >> >> >> On Thu, Jan 17, 2013 at 7:35 PM, Ignacio Piantanida >> wrote: >> >>>

Re: [Rails] case study

2013-01-28 Thread Nicolas Desprès
il to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/GLpFbbHm0ogJ. > For more options, visit http

Re: [Rails] Facebook login on mobile app through a rails app

2013-01-21 Thread Nicolas Desprès
arently OAuth2 can do the authentication using an access_token: http://rubydoc.info/gems/oauth2/0.8.0/frames I am trying to get this work with omniauth and devise. 2013/1/21 Nicolas Desprès > > > On Mon, Jan 21, 2013 at 11:41 AM, Nicolas Desprès < > nicolas.desp...@gmail.co

Re: [Rails] Facebook login on mobile app through a rails app

2013-01-21 Thread Nicolas Desprès
On Mon, Jan 21, 2013 at 11:41 AM, Nicolas Desprès wrote: > > > On Thu, Jan 17, 2013 at 7:35 PM, Ignacio Piantanida > wrote: > >> 2013/1/17 Nicolas Desprès >> >>> >>> >>> On Wed, Jan 16, 2013 at 6:17 PM, Vitor HP wrote: >>> >>

Re: [Rails] Facebook login on mobile app through a rails app

2013-01-21 Thread Nicolas Desprès
On Thu, Jan 17, 2013 at 7:35 PM, Ignacio Piantanida wrote: > 2013/1/17 Nicolas Desprès > >> >> >> On Wed, Jan 16, 2013 at 6:17 PM, Vitor HP wrote: >> >>> Hi folks. >>> >> >> Hi, >> >> >>> >>> I&#

Re: [Rails] Facebook login on mobile app through a rails app

2013-01-17 Thread Nicolas Desprès
I can't figure out how the Rails app can use the login information retrieved via the mobile app to interact with the Facebook platform. I will write more as soon as I have further information. Regards, -- Nicolas Desprès -- You received this message because you are subscribed to the Googl

Re: [Rails] Writing data into yml file in a particular format

2012-12-19 Thread Nicolas Desprès
On Wed, Dec 19, 2012 at 6:37 AM, nikhil rn wrote: > Hi, > Hi, > > I have a hash in a controller file which I have to write into a YAML.yml > file in a particular format. > > This is the code I am using in the controller to write to yml file. > > "File.open("config/locales/output.yml", "w") {|f

Re: [Rails] ActiveRecord object from json

2012-12-19 Thread Nicolas Desprès
nTypeMismatch) > > > Any help would be greatly appreciated. > > > Thanks again > > Dave > > > -- > 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

Re: [Rails] Track the number of users who are all visiting the web application

2012-12-18 Thread Nicolas Desprès
ps://groups.google.com/d/msg/rubyonrails-talk/-/iLxmyfi8xF8J. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Nicolas Desprès -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

Re: [Rails] Re: What does Rails do with basic Ruby's math behaviour?

2012-12-07 Thread Nicolas Desprès
On Fri, Dec 7, 2012 at 12:46 PM, Frederick Cheung < frederick.che...@gmail.com> wrote: > > > On Thursday, December 6, 2012 8:41:20 AM UTC, Nicolas Desprès wrote: >> >> Hi, >> >> This is my first post on this mailing list and I would like to thanks the >

[Rails] Re: What does Rails do with basic Ruby's math behaviour?

2012-12-07 Thread Nicolas Desprès
I forgot to say that I am using ruby 1.9.3-p327. On Thu, Dec 6, 2012 at 9:41 AM, Nicolas Desprès wrote: > Hi, > > This is my first post on this mailing list and I would like to thanks the > authors and the community for this great tools. > > After a couple of weeks happily pla

[Rails] What does Rails do with basic Ruby's math behaviour?

2012-12-07 Thread Nicolas Desprès
turn the same result in both cases. Personally, I found this behaviour dangerous since many third party libraries will be based on it. I had a quick look at http://guides.rubyonrails.org/active_support_core_extensions.html but could not find any mention of it. Can someone explain me why and how Rails does