Re: [Rails] Select fields, Coffeescript and Cocoon

2014-04-23 Thread Werner Laude
Am 23.04.2014 um 14:54 schrieb Walter Lee Davis : > > > One thing to remember, conceptually, is that you cannot replace the "innards" > of a select as if they were HTML without destroying its ability to react > correctly to scripting or user input. The only "bulletproof" way to update > the

Re: [Rails] Reg. Expression

2013-05-27 Thread Werner Laude
Am 27.05.2013 um 16:33 schrieb Jordon Bedwell : > On Mon, May 27, 2013 at 6:38 AM, Werner > wrote: >> Hi >> .. somebody around who is easy with Reg. Exressions. >> For me a nightmare. >> >> I have to Validate this format: 0- and/or 0- /0 and/or >> 0- /00 > > \A\d\-\d{

Re: [Rails] Some javascript help needed

2013-04-18 Thread Werner Laude
Am 18.04.2013 um 15:49 schrieb Crispin Schäffler : Hi Crispin.. thanks so far.. I get the idea.. but still... > either find the input by the id (look at compiled html code, but it is > something like FORMNAME_FIELDNAME) and use val to get data into it. > > however, if you want to reuse the fun

Re: [Rails] Creating array, decimal

2013-02-27 Thread Werner Laude
Am 27.02.2013 um 16:05 schrieb Colin Law : > On 27 February 2013 12:23, Werner wrote: >> Hi >> I have an attribute decimal => hour >> >> If I do >> >> hours.each do |h| >> h.my_hour >> end >> I get => 20.0 0.0 0.0 10.0 >> >> And this.. >> myhour = [] >> hours.each do |h| >> myhour << hou

Re: [Rails] Ajax

2012-11-20 Thread Werner Laude
hrieb Jim Ruther Nill : > > > > On Tue, Nov 20, 2012 at 9:31 PM, Werner Laude > wrote: > > Am 20.11.2012 um 14:19 schrieb Jim Ruther Nill : > >> $('#main-hours span').text('<%= @main_hours %>'); > > perfect.. thanks a l

Re: [Rails] Ajax

2012-11-20 Thread Werner Laude
Am 20.11.2012 um 14:19 schrieb Jim Ruther Nill : > $('#main-hours span').text('<%= @main_hours %>'); perfect.. thanks a lot.. Now I get the idea.. Werner Laude webagentur.la...@gmail.com -- You received this message because you are subscribed to the Google

Re: [Rails] Ajax

2012-11-20 Thread Werner Laude
... ... Hope this gets more clear now. > > > > On Tue, Nov 20, 2012 at 8:45 PM, Werner Laude > wrote: > here...is the essential > > def edit > @booking = Booking.new > > @project = Project.find(params[:id]) > @partprojects = Proje

Re: [Rails] Ajax

2012-11-20 Thread Werner Laude
pt_out. > > > > > > -- > - > visit my blog at http://jimlabs.heroku.com > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group

Re: [Rails] routing issue on match '/:locale'

2012-11-14 Thread Werner Laude
ck > > -- > 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 this group, send email to > rubyonrails-talk+unsubs

Re: [Rails] validation check

2012-10-24 Thread Werner Laude
the value of project_id and why your > tests are not working. > > Colin > > -- > 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. >

Re: [Rails] Insert multiple entires

2012-10-24 Thread Werner Laude
d"=>"2" >> >> project_id is in.. but how to fetch workhour and week_id? > > I don't understand the question. You have shown us the code to fetch > workhour and week_id from params. What is it that you do not know how > to do. > > Colin

Re: [Rails] Question . how to create multiple new records from single new page and from same model?

2012-09-26 Thread Werner Laude
t; 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/-/acctB-TEwgwJ. > For more options, visit https://groups.google.com/groups/opt_out. > &

Re: [Rails] Ruby on Rails salaries in Berlin?

2012-09-25 Thread Werner Laude
uot; group. > To post to this group, send email 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/-/fMKJkyZOTyoJ. &g

Re: [Rails] Insert multiple datasets - one form

2012-09-25 Thread Werner Laude
: Talk" group. > To post to this group, send email 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-t

Re: [Rails] Insert multiple datasets - one form

2012-09-25 Thread Werner Laude
le.com/d/msg/rubyonrails-talk/-/ieqWfqlz2MoJ. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > David Angga Prasetya > RoR Developers > > skype: david.angga > phone: +62 85 222 1 2 > > > > > --

Re: [Rails] Ruby on Rails salaries in Berlin?

2012-09-25 Thread Werner Laude
Am 24.09.2012 um 20:17 schrieb powi : Hi Santiago > > > Also, does anybody knows what's the average IT salary in Berlin for Rails > developers? > > I work in Berlin for 60.- / h as a freelancer. As a junior, it will be less. Depends also from your age/experience. In the moment they are q

Re: [Rails] Set a query filter

2012-09-21 Thread Werner Laude
Am 21.09.2012 um 17:47 schrieb Hassan Schroeder : > On Fri, Sep 21, 2012 at 8:46 AM, Werner Laude > wrote: > >> can you give me a practical sample..thanks > > I just did :-) This idea Skill.all - user.skills is totally new to me.. I will try tonight..ned some

Re: [Rails] Set a query filter

2012-09-21 Thread Werner Laude
ubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > Werner Laude webagentur.la...@gmail.com -- You received this message because you are subscribed to the Google Groups

Re: [Rails] JQuery + Coffeescript

2012-05-11 Thread Werner Laude
e event handler attached to the text > field, you can shorten that slightly to $(this).val() instead of $ > ('#query').val() > Werner Laude webagentur.la...@gmail.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails

Re: [Rails] Re: JQuery + Coffeescript

2012-05-10 Thread Werner Laude
the action search @clients = Client.where("name like ?", "%#{params[:query]}%") But this is not happening > The get method takes as its optional 2nd argument a map or string of > data, ie in your case {query: $(this).val()} (since this is in that > event hand

[Rails] Re: Problem during validation

2008-12-05 Thread Werner Laude
Thanks.. On 5 Dez., 19:07, Ar Chron <[EMAIL PROTECTED]> wrote: > When your save fails, are you re-seeding the @booking_partial value? > > def create > if @booking.save > # the happy path > else > @booking_partial = blah blah blah > render :action => 'new' > end > end > -- > Pos

[Rails] Problem during validation

2008-12-05 Thread Werner Laude
Hi..I need some advice: A formular which includes 3 partials The partial will be chosen by userinput stored in a session Controller: def new @booking = Booking.new @booking_partial = partial_choice(session[:pre][:fahrt]) # 1,2 or 3 this works fine, but if the validation fails the partial