Re: [Rails] Re: How/when/where did DHH discover ruby?

2018-12-16 Thread Stefan Buhrmester
Friday, November 16, 2018 at 12:21:15 AM UTC-6, Stefan Buhrmester wrote: >> >> Hello all, >> >> just to satisfy my curiosity, I wondered if there is any background story >> on how DHH discovered Ruby for the first time. Guess that would make for an >> interesting r

Re: [Rails] Can start a new Rails app with Ruby 2.5.0 but not in 2.5.3

2018-11-28 Thread Stefan Buhrmester
2.5.3 works perfectly fine for me. have you tried `rbenv rehash` after switching ruby versions? On Thu, Nov 29, 2018 at 2:55 PM Jason Hsu wrote: > My development environment has rbenv with Ruby 2.5.0 and 2.5.3. I can > start a new Rails app in Ruby 2.5.0 but not in Ruby 2.5.3. Here's the > scr

[Rails] How/when/where did DHH discover ruby?

2018-11-15 Thread Stefan Buhrmester
Hello all, just to satisfy my curiosity, I wondered if there is any background story on how DHH discovered Ruby for the first time. Guess that would make for an interesting read. Stefan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q

Re: [Rails] Re: rails vs. nodejs

2018-11-14 Thread Stefan Buhrmester
t 8:10:28 PM UTC-5, Stefan Buhrmester > wrote: >> >> I've been a professional web developer for 16 years now. "Professional" >> as in "receiving money for pushing buttons on the computer with a varying >> degree of purposefulness". >> >

Re: [Rails] Re: rails vs. nodejs

2018-11-14 Thread Stefan Buhrmester
I've been a professional web developer for 16 years now. "Professional" as in "receiving money for pushing buttons on the computer with a varying degree of purposefulness". After 3 years of working exclusively with nodejs on the server- as well the client side, I landed a Rails job again. And I ha

[Rails] Re: [ActionCable] Filter data based on params

2018-10-30 Thread Stefan Buhrmester
Ok, just dug into the source code and think I found a solution: stream_from 'some_channel', coder: ActiveSupport::JSON do |person| transmit(thing) if (person['age'].to_i > params[:min_age]) end On Wednesday, October 31, 2018 at 2:30:44 AM UTC+9, Stefan Buhrmest

[Rails] [ActionCable] Filter data based on params

2018-10-30 Thread Stefan Buhrmester
def subscribed people = Person.where('age > ?', params[:min_age]) stream_for people end end Anybody got any ideas how to do this? Filtering messages seems like such a basic thing but I can't find a way. Stefan -- You received this message because you are subscribed to the

[Rails] Re: Consolidated logging

2016-11-24 Thread 'Stefan Frank' via Ruby on Rails: Talk
probably not getting any Bonus points for pointing out that there are existing ami-images for setting up an Elastic-Stack(https://www.elastic.co), consisting of logstash (for sending out logfiles), elasticsearch (for collecting them centrally and making them searchable), and kibana (for visuali

[Rails] How to allow anonymous users to edit their posts by providing only it's password?

2011-07-25 Thread Stefan Gelenchev
I need some help with a small Classfieds site I'm currently trying to build. I am letting users publish their classfieds for free and without registering. But I also want to let them be able to edit their classfieds at a later point. That's why I am asking them to provide a password for their clas

[Rails] Re: Rails newbie asking for help [simple question]

2011-05-17 Thread Stefan Gelenchev
Played with the code for hours and just got it to work, 20 minutes after posting here. ruby-forum.com brought me luck, thank you :) Here the working code: <% if current_user.favourites.exists? :post_id => @post.id %> So it checks the favs of the current_user in the fawvourites table and compar

[Rails] Rails newbie asking for help [simple question]

2011-05-17 Thread Stefan Gelenchev
First I want to thank the community for their help and here is my question :) I have a simple add to fdavourites functionality. A user can add a post to their favouirites. Thing is I want to display the "add to favourites" button if the post is not in the user's favs and something else if it is, s

Re: [Rails] Problem starting rails server using the vim.rails plugin

2011-02-15 Thread Stefan Rohlfing
Hi Norbert, Thanks for looking into this problem. I am using RoR 3 with Rails 1.9.2. I am going to try to contact the author. If there is any news, I will post it here. Thanks again for your help! Stefan -- You received this message because you are subscribed to the Google Groups "Rub

Re: [Rails] Problem starting rails server using the vim.rails plugin

2011-02-14 Thread Stefan Rohlfing
I am using the latest version of vim-rails from GitHub. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from thi

[Rails] Problem starting rails server using the vim.rails plugin

2011-02-08 Thread Stefan Rohlfing
lowing error message: boot.rb:1:in `require': no such file to load -- rubygems (LoadError) Running the server directly from the terminal using the *rails server*command does work without any problem, though. Has anyone else encountered this problem before? Thanks Stefan -- You received t

[Rails] Re: Help: delegated association 'App' returning ActionDispatch::Integration::Session instead

2010-11-19 Thread Stefan Alder
ame App to something else, however unnatural it may be? On Fri, Nov 19, 2010 at 2:51 AM, Stefan Alder wrote: > class Foo < ActiveRecord::Base >  has_one :bar >  delegate :app, :to => :bar > end > > class Bar < ActiveRecord::Base >  belongs_to :app > >  def self

[Rails] Help: delegated association 'App' returning ActionDispatch::Integration::Session instead

2010-11-19 Thread Stefan Alder
class Foo < ActiveRecord::Base has_one :bar delegate :app, :to => :bar end class Bar < ActiveRecord::Base belongs_to :app def self.attribute_column_names return @@attr_columns if defined?(@@attr_columns) readers = content_columns.map { |n| n.name.intern } - [:created_at,:updated_a

[Rails] Re: Content-Length missing from HEAD request response

2010-11-01 Thread Stefan Alder
Still wondering about this. Any ideas? On Fri, Oct 29, 2010 at 2:34 PM, Stefan Alder wrote: > Just upgraded to Rails 3 from 2.x.  I've got a download method which > returns a file for download via XSendfile.  In Rails 2.x a HEAD > request of the download resulted in a response

[Rails] Re: Trying to work through update of Ruby and Install of Rails

2010-10-30 Thread Stefan Hinck
Hello thanks for your help The book I am following "Agile Web Development with Rails 3rd Edition" says that their editor of choice is TextMate which I am familiar with so I may stick with it. But I am not so attached to it that I wont use xCode if it looks good. I read some on the site you lis

[Rails] Content-Length missing from HEAD request response

2010-10-29 Thread Stefan Alder
Just upgraded to Rails 3 from 2.x. I've got a download method which returns a file for download via XSendfile. In Rails 2.x a HEAD request of the download resulted in a response which included Content-Length, ETag and Last-Modified headers, but in Rails 3 I'm not longer getting these. Reading th

[Rails] Trying to work through update of Ruby and Install of Rails

2010-10-29 Thread Stefan Hinck
Hello all Newb alert... I am trying to install Rails and also update ruby. I am running OSX and found that my Ruby version is 1.8.7 Where I am confused is that on the Rails site it mentions that Ruby comes with "Developer Tools" for Mac users... So I looked on the Apple site and read up a bit o

[Rails] Re: RoR to interact with DB on IIS server

2010-10-28 Thread Stefan Hinck
Yea I think your right, this is way outta my league. What has always confused me is how developers make it from their first book and building their hello world or calculator app, to actually programming a real world solution. When I sit down to see what I can try to create, I always draw a blan

[Rails] RoR to interact with DB on IIS server

2010-10-28 Thread Stefan Hinck
Hello All I am new here. First off, I have never been a great programmer, or even a functional one… I worked briefly with ASP back years and years ago and was able to create a database driven site. The height of my achievements… I am now diving into Ruby with the hopes that this will be my first

[Rails] People Centric recherche plusieurs développ eurs Ruby on Rails

2010-04-13 Thread Roxana Stefan Malene
, Roxana Stefan Malene Chargée de recrutement en IT Mail: roxan...@people-centric.eu -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from

[Rails] Re: Re: Re: Rails 3 Routing: Namespace'd Controllers?

2010-03-18 Thread Stefan Buhr
Conrad Taylor wrote: > Sent from my iPhone > > > Please post the Rails 2.x route that you would like to convert to > Rails 3.0? > Hey Conrad, I think I made a mistake. I was under the impression that following code in rails 2 map.namespace :admin do |admin| admin.connect ':controller/:actio

[Rails] Re: Re: Rails 3 Routing: Namespace'd Controllers?

2010-03-17 Thread Stefan Buhr
Conrad Taylor wrote: > namespace :admin do resources :settings do > get :some_action, :on => :member # member route > get :some_other_action, :on => :collection # collection route > end end Yes, someone *could* explicitly define all actions in the routes.rb, but that is exactly what I do not want

[Rails] Re: Rails 3 Routing: Namespace'd Controllers?

2010-03-17 Thread Stefan Buhr
Conrad Taylor wrote: > > namespace :admin do resources :settings end > > Then, you'll end up with the following controllers: > > /admin/settings Hey, thanks for the hint, but resources() only adds the standard actions to the route (index, show, edit, new, create, update, delete). I'm looking

[Rails] Rails 3 Routing: Namespace'd Controllers?

2010-03-17 Thread Stefan Buhr
Hi there, I'm stuck with some very simple routing requirements. Somehow I believe this is not even possible with the new Rails 3 Router: So i have my Admin::SettingsController class in controllers/admin My intention is to access the admin-controllers via /admin/:controller/:action in my routes.

[Rails] adding associate objects without persistence operation

2009-09-11 Thread Stefan Scherer
Hello, I have two models, Publication and Person, that are connected via a has many - through association (join-model: Contribution). I have a Publication-object that has already been persisted (i.e. new_record? evaluates to false) and would like to do the following: 1) adding a Person-object th

[Rails] InvalidAuthenticityToken on login (sometimes)

2009-05-11 Thread Stefan Kroes
isn't encoded correctly? I started a new thread because all other problems with the tokens seem to be reproducable reliably. Regards, Stefan -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Rails] Re: mysql encoding with rails 2.3.2 and ruby 1.9.1

2009-04-06 Thread Stefan    
ruby.freeman wrote: > It's problem of rails, not mysql library. ActiveRecord should be > encoding-aware now Where did you get that information? Is there any workaround or patch for that problem with ActiveRecord? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~--

[Rails] Re: mysql encoding with rails 2.3.2 and ruby 1.9.1

2009-03-23 Thread Stefan La
Jeremy Kemper wrote: > On Sat, Mar 21, 2009 at 7:52 AM, ruby.freeman > wrote: >> >> when I run console with ruby 1.9.1 and rails 2.3.2, and trying to do >> something like >> >> User.first.name.encoding >> >> I'm getting #, though I've set "encoding: utf8" >> in database.yml >> >> any suggestions

[Rails] Single-table inheritance and validation problem

2009-03-19 Thread Stefan Frede
Here some code that hopefully shows the problem: http://pastie.org/pastes/419606 So my question is how can I compare the email input to throw an error if they are the same. Thanks in advance. Regards, Stefan --~--~-~--~~~---~--~~ You received this message

[Rails] Re: Multiple models one form and a one-to-one relationship

2009-02-24 Thread Stefan Frede
ot;plz", "street"=>"straße", "phone"=>"telefon", "c_o"=>"c/o (optional)", "surname"=>"nachname", "comment"=>"kommentar (optional)", "email"=>"e-m

[Rails] Multiple models one form and a one-to-one relationship

2009-02-24 Thread Stefan Frede
d end end end ## # View (Haml syntax) - form_for :subscription, @subscription, :url => subscriptions_path do |subscription_form| ... subscription fields - subscription_form.fields_for :user do |user_form| ... user fields Every help is appreciated. Thanks in advance. Regards

[Rails] Re: bug? ruby tests do not write to mysql-database

2009-02-23 Thread Stefan Lischke
Thats bad, how can i disable this "feature". I also need to look at the database when debugging my tests. Its not a problem for me to pay the cost of reloading the fixtures which i do not use. thanx in advance schtief 2009/2/23 Frederick Cheung : > > > On 23 Feb 2009, at 20:24, schtieF wrote:

[Rails] Re: Problem with presentation of error messages and multiple objects

2009-02-23 Thread Stefan Frede
omeone. Regards, Stefan On 22 Feb., 08:30, Stefan Frede wrote: > No, it's one form with which I update all of my models. The form > itself belongs to the subscription model. > > The subscription model belongs to the payment and user model and the > payment and user model on

[Rails] Re: Problem with presentation of error messages and multiple objects

2009-02-21 Thread Stefan Frede
is but the only thing I found out by now is that I'm not the first one with this problem (how wondering :)) but no solution or at least something that points me in the right direction (ok, updating to Edge Rails is no solution for me right now). Every hint is appreciated. Regards, Stefan On

[Rails] Problem with presentation of error messages and multiple objects

2009-02-20 Thread Stefan Frede
tion has something to do with valid? method in the SubscriptionService but as I said I don't know how and where to collect all error messages and present them at once. Many thanks in advance. Regards, Stefan --~--~-~--~~~---~--~~ You received this message because you ar

[Rails] Re: classic_pagination - svn connection timeout

2008-11-15 Thread Stefan Lang
t to host "errtheblog.com': A connection > attempt failed ... > > > Is there another svn repository from which I can get this plugin? (as > well as will_paginate) Found it on github: http://github.com/masterkain/classic_pagination/tree/master

[Rails] Images are not shown on server / incorrect path

2008-09-26 Thread Stefan Kaehler
Hi folks, i'm new to ROR. My Application works fine on my local machine, but if i deploy my application the pictures and files are not shown correctly. Instead of taking the right uri "http://adress/employee_public/pictures//0010/not.gif"; it takes the uri "http://adress/pictures//0010/n