[Rails] js .closest

2014-05-06 Thread Werner
I have a script: $ - $(document).on 'change', ('.ops_select'), - val = $(.ops_select option:selected).val() $.ajax '/projects/update_oncalls/', type: 'GET' dataType: 'script' data: {ops_group_id: val } which triggers a update_concalls.js.coffee file to replace a the

[Rails] Select fields, Coffeescript and Cocoon

2014-04-23 Thread Werner
Hello, I have select field which after a choice happened, feeds another select field. Using the gem Cocoon to duplicate this set of select fields. My problem now is to find a solution that the coffee script supplies values for each select field-set separately. My code: form %= render

Re: [Rails] Select fields, Coffeescript and Cocoon

2014-04-23 Thread Werner Laude
Am 23.04.2014 um 14:54 schrieb Walter Lee Davis wa...@wdstudio.com: 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

[Rails] multiple insert - one form

2013-07-16 Thread Werner
].each do | user | Model.create( :user_id = user, :instruction_id = params[:instruction_id] ) end Help would be great..Do I have to use form_field? Werner -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group

[Rails] Reg. Expression

2013-05-27 Thread Werner
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 Would be a great help.. I have got: (^\d-\d{4} \d{4}(/\d{2})?$)|(^I\d{8}$)|(^$) tried: validates :project_number, :format = {

Re: [Rails] Reg. Expression

2013-05-27 Thread Werner Laude
Am 27.05.2013 um 16:33 schrieb Jordon Bedwell envyge...@gmail.com: On Mon, May 27, 2013 at 6:38 AM, Werner webagentur.la...@googlemail.com 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

Re: [Rails] Some javascript help needed

2013-04-18 Thread Werner Laude
#alert(m) Js is a little nightmare fore me.. need some time Thanks would make it a bit more reuseable... Am Mittwoch, 17. April 2013 14:36:39 UTC+2 schrieb Werner: I need a little support with js. Would be great.. I have a textfield with a hover function. If click on the popup I want

[Rails] Some javascript help needed

2013-04-17 Thread Werner
Werner -- 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-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails

[Rails] Creating array, decimal

2013-02-27 Thread Werner
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 hour end myhour.join(,) I get = Hour:0x007f81feec3330,#Hour:0x007f81feaa0c30, How do I get something like this ? 20.0, 0.0, 0.0,

Re: [Rails] Creating array, decimal

2013-02-27 Thread Werner
Thanks..but mhhh..it is not clear what you mean... hour.join(,).to_s ? no effect.. Am Mittwoch, 27. Februar 2013 13:31:21 UTC+1 schrieb Dheeraj Kumar: override Hour's to_s method to return my_hour -- Dheeraj Kumar On Wednesday 27 February 2013 at 5:53 PM, Werner wrote: Hi I have

Re: [Rails] Creating array, decimal

2013-02-27 Thread Werner
Well my be I am a litte stubborn today.. What I need is an array [20.0, 0.0, 0.0, 10.0] Am Mittwoch, 27. Februar 2013 14:13:09 UTC+1 schrieb Carlos Mathiasen: Matt's On Wed, Feb 27, 2013 at 9:43 AM, Werner webagent...@googlemail.comjavascript: wrote: Thanks..but mhhh

Re: [Rails] Creating array, decimal

2013-02-27 Thread Werner
:57 PM, Carlos Mathiasen wrote: this work for me: hours.collect{|h| h.my_hour} Matt's On Wed, Feb 27, 2013 at 10:25 AM, Werner webagent...@googlemail.comjavascript: wrote: Well my be I am a litte stubborn today.. What I need is an array [20.0, 0.0, 0.0, 10.0] Am Mittwoch, 27

Re: [Rails] Creating array, decimal

2013-02-27 Thread Werner Laude
Am 27.02.2013 um 16:05 schrieb Colin Law clan...@googlemail.com: On 27 February 2013 12:23, Werner webagentur.la...@googlemail.com 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

[Rails] Re: Twitter bootstrap rails gem not working in production mode

2013-02-17 Thread Werner
'); @import bootstrap; $red: #CC; @import 'layout.css.scss'; @import 'typo.css.scss'; Hope that helps.. Werner Am Samstag, 16. Februar 2013 23:02:05 UTC+1 schrieb Loganathan Sellappa: Hi All, I am using 'twitter-bootstrap-rails' in my rails app where I can run the application

[Rails] group_by sum

2013-02-11 Thread Werner
Again I need some help with groupingsum Attributes: user_id, week_id, project_id, hours 161 1 20 162 1 5 162 2 0 161 2 15

[Rails] Re: group_by sum

2013-02-11 Thread Werner
Sorry the posting was send by mistake.. this is the correct question: Again I need some help with groupingsum Attributes: user_id, week_id, project_id, hours 161 1 20 162 1 5 162

Re: [Rails] business days

2013-02-10 Thread Werner
Thanks for your input... I will check that.. Werner Am Samstag, 9. Februar 2013 23:46:20 UTC+1 schrieb tamouse: On Fri, Feb 8, 2013 at 11:35 AM, Werner webagent...@googlemail.comjavascript: wrote: I have a table with dates start = 2013-02-04 end = 2013-02-13 I can count

[Rails] Change helper to js/coffee

2013-02-08 Thread Werner
the background color changes. How to approch that? Thanks for support Werner -- 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-talk+unsubscr

[Rails] business days

2013-02-08 Thread Werner
- Wed) I want to store the cweek + business days per week like this week_id, days = 60 , 5 = 61, 3 Tried (start_week_id..end_week_id).each { |week| Model.create(:week_id = week, :days = end Need some inspiration how to find out the days per given cweek Thanks for support Werner

Re: [Rails] group by + sum

2013-01-25 Thread Werner
. Am Donnerstag, 24. Januar 2013 16:01:06 UTC+1 schrieb jim: On Thu, Jan 24, 2013 at 10:38 PM, Werner webagent...@googlemail.comjavascript: wrote: Jim..sorry.. not my day... have to contemplate about your solution. I wonder.. HourUser.includes(:user).where.group_by { |h

Re: [Rails] group by + sum

2013-01-25 Thread Werner
Hi Jim.. thanks.. looks good now.. I had a mistake in another model..so the grouping was not correct. my god.. what a trip sometimes.. Werner Am Freitag, 25. Januar 2013 14:50:53 UTC+1 schrieb jim: On Fri, Jan 25, 2013 at 9:42 PM, Werner webagent...@googlemail.comjavascript: wrote

[Rails] group by + sum

2013-01-24 Thread Werner
[hour].collect(:stunden).sum Hours are summed up, but not sorted by user_id.. How to get that? Thanks Werner -- 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] group by + sum

2013-01-24 Thread Werner
Feel a litte ittle stupid right now.. where to sort_by? Am Donnerstag, 24. Januar 2013 09:49:33 UTC+1 schrieb Jordon Bedwell: On Thu, Jan 24, 2013 at 2:35 AM, Werner webagent...@googlemail.comjavascript: wrote: Hi.. I need some support... table: week_id, user_id, project_id

Re: [Rails] group by + sum

2013-01-24 Thread Werner
Think, you mean something like: Model.sort_by{|h| [h.user_id, -h.week_id]} ? Am Donnerstag, 24. Januar 2013 10:24:57 UTC+1 schrieb Jordon Bedwell: On Thu, Jan 24, 2013 at 3:14 AM, Werner webagent...@googlemail.comjavascript: wrote: Feel a litte ittle stupid right now.. where

Re: [Rails] group by + sum

2013-01-24 Thread Werner
Hi Jim.. thanks so far.. in the moment this is a bit too far for me. Just remember that to get a certain value, you'll have to pass an array as the index ie sums[[33,2]] to get 70 = this is unclear Pls. be so kind to explain the view part. Werner Am Donnerstag, 24. Januar 2013 11:36:44

[Rails] Re: Add Multiple Records of a model using single form

2013-01-24 Thread Werner
something like that: *% 1.upto(2) do |i| % %= text_field_tag fields[#{i}][user_name],'', :class = user_name % %= radio_button_tag fields[#{i}][is_checked], '1', false %br % end % params[:fields].each do |i, values| u = User.create(values) end* Am Donnerstag, 24. Januar 2013 14:33:45 UTC+1

Re: [Rails] group by + sum

2013-01-24 Thread Werner
far. Am Donnerstag, 24. Januar 2013 14:16:16 UTC+1 schrieb jim: On Thu, Jan 24, 2013 at 7:55 PM, Werner webagent...@googlemail.comjavascript: wrote: Hi Jim.. thanks so far.. in the moment this is a bit too far for me. Just remember that to get a certain value, you'll have to pass

[Rails] Re: How to globalize a static page?

2013-01-20 Thread Werner
Hi 1. class ApplicationController ActionController::Base protect_from_forgery before_filter :set_locale def set_locale # update sessions if passed session[:locale] = params[:locale] if params[:locale] # set locale based on sessions or default I18n.locale =

[Rails] sql performance

2013-01-15 Thread Werner
Hi all. I have a sql performance problem. Would be great to get some inspiration. model hour: id, week_id, :user_id, project_id, hour controller: @hours = Hour.project(@project.id) update: if params[:booking_user_ids] params[:booking_user_ids].each do

[Rails] ajax..

2012-12-11 Thread Werner
Hope it is o.k. when I post a js/ ajax related to rails.. question here. I have a form with a select field. What I have in mind is to display an inline div with some db related infos when the select_field has changed. form %= f.collection_select :parent_id, Project.all, :id, :project_name,

Re: [Rails] Ajax

2012-11-20 Thread Werner
19, 2012 at 10:25 PM, Werner webagent...@googlemail.comjavascript: wrote: On my edit page I can update values using ajax. In my edit action I also have something like: Model.where(model_id: id).sum(attribute) As the edit action is not executed anymore, I dont get a proper result after I

Re: [Rails] Ajax

2012-11-20 Thread Werner
, Werner webagent...@googlemail.comjavascript: wrote: Hi jim As I am using remote: true I created a update.js.erb and a respond_to do |format| block. Copied the format html ocde into the update.js.erb and the update process is still working.. so far so good. But it is unclear to me how

Re: [Rails] Ajax

2012-11-20 Thread Werner
20, 2012 at 5:46 PM, Werner webagent...@googlemail.comjavascript: wrote: Sure.. def edit @booking = Booking.new @project = Project.find(params[:id]) @main_hours = main_hours_sum(@project.id) ... end def main_hours_sum(id) Booking.where(project_id: id).sum(hour

Re: [Rails] Ajax

2012-11-20 Thread Werner Laude
Nill jvn...@gmail.com: On Tue, Nov 20, 2012 at 7:48 PM, Werner webagentur.la...@googlemail.com wrote: o.k. Now it is like that: def update if params[:booking_ids] params[:booking_ids].each do Booking.update(params[:booking].keys, params[:booking].values).reject

Re: [Rails] Ajax

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

Re: [Rails] Ajax

2012-11-20 Thread Werner Laude
Am 20.11.2012 um 14:19 schrieb Jim Ruther Nill jvn...@gmail.com: $('#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 Groups Ruby

Re: [Rails] Ajax

2012-11-20 Thread Werner Laude
Ruther Nill jvn...@gmail.com: On Tue, Nov 20, 2012 at 9:31 PM, Werner Laude webagentur.la...@googlemail.com wrote: Am 20.11.2012 um 14:19 schrieb Jim Ruther Nill jvn...@gmail.com: $('#main-hours span').text('%= @main_hours %'); perfect.. thanks a lot.. Now I get the idea

[Rails] Ajax

2012-11-19 Thread Werner
On my edit page I can update values using ajax. In my edit action I also have something like: Model.where(model_id: id).sum(attribute) As the edit action is not executed anymore, I dont get a proper result after I add some new value, have to reload the page. How is the best way to actualize

[Rails] Re: Drop down with model info

2012-11-19 Thread Werner
Something like that? %= f.select :city_id, @cities.map { |city| [city.name, city.id] } % Am Montag, 19. November 2012 07:57:39 UTC+1 schrieb Ruby-Forum.com User: I have this code: %= f.select :name, [@m.each do |n| [ n.first_name , n.first_name ] end], :class =

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

2012-11-14 Thread Werner Laude
Am 14.11.2012 um 11:42 schrieb Erwin yves_duf...@mac.com: Hi Erwin.. my be you check This. gem 'i18n_routing' Gruss Thanks Werner, I'm quite there .. I am working as you mentionned .. but I don't understand why I still have the locale parameter in my root_url : in the console

[Rails] has many through

2012-11-13 Thread Werner
Hi all. I have models: has_many :bookings has_many :projects, :through = :bookings has_many :bookings has_many :weeks, :through = :bookings belongs_to :project belongs_to :week Now I want to get all coresponding entries from the bookings and weeks table filtered by a query.

[Rails] Re: has many through

2012-11-13 Thread Werner
: 1, week_id: 47, project_id: 2, hour: 4, #Booking id: 2, week_id: 48, project_id: 2, hour: 7] and you want the data associated with the week and the project ? right why don't you join the tables data uisng .join ? Le mardi 13 novembre 2012 14:34:08 UTC+1, Werner a écrit : Hi all

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

2012-11-13 Thread Werner
Hallo Erwin.. When you work with before_filter :set_locale def set_locale # update sessions if passed session[:locale] = params[:locale] if params[:locale] # set locale based on sessions or default I18n.locale = session[:locale] || I18n.default_locale end just create

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

2012-11-13 Thread Werner
root :to = 'welcome#index' is enough Am Dienstag, 13. November 2012 15:37:06 UTC+1 schrieb Werner: Hallo Erwin.. When you work with before_filter :set_locale def set_locale # update sessions if passed session[:locale] = params[:locale] if params[:locale] # set locale

[Rails] sum decimals

2012-10-26 Thread Werner
I have a column hours which I want to sum up the decimals Week.sum('hour')= 22.5 But I want to select by project_id not the hole table. Week.find_all_by_project_id(@project.id, :select = workhour).sum #undefined method `+' for #Week hour: #BigDecimal:7fd68b358400,'0.0',9(18) I cant find

Re: [Rails] sum decimals

2012-10-26 Thread Werner
Thanks Rob.. true.. it works as expected.. Am Freitag, 26. Oktober 2012 16:53:13 UTC+2 schrieb Rob Biedenharn: On Oct 26, 2012, at 8:18 AM, Werner wrote: I have a column hours which I want to sum up the decimals Week.sum('hour')= 22.5 But I want to select by project_id

Re: [Rails] Insert multiple entires

2012-10-24 Thread Werner Laude
Am 24.10.2012 um 11:27 schrieb Colin Law clan...@googlemail.com: Hi Colin.. thanks.. this is solved so far.. On 23 October 2012 09:47, Werner webagentur.la...@googlemail.com wrote: need some help with this.. form: %= simple_form_for(@week) do |f| % % @kws.each do |w,y| % th%= w

[Rails] validation check

2012-10-24 Thread Werner
Hi.. I have a select which I want to validate if a value is selected, otherwise not. %= f.collection_select :parent_id, Project.mainprojects.active, :id, :project_name, :include_blank = 'Partproject?', :allow_nil = true% how is the correct way..? tried..in model if :project_id if

Re: [Rails] validation check

2012-10-24 Thread Werner Laude
Am 24.10.2012 um 22:32 schrieb Colin Law clan...@googlemail.com: Hi Colin.. %= f.collection_select :parent_id, Project.mainprojects.active, :id, :project_name, :include_blank = 'Partproject?', :allow_nil = true% the project_id .. 1, 2 etc. or parent_id=1 parent_id= Werner On 24

[Rails] Insert multiple entires

2012-10-23 Thread Werner
need some help with this.. form: %= simple_form_for(@week) do |f| % % @kws.each do |w,y| % th%= w %.%= #{y}[2..4] %/th #gives a val something like: 482012 %= text_field_tag workhour[] % %= hidden_field_tag week_ids[], [#{w}#{y}] % % end % %=

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

2012-09-26 Thread Werner Laude
...@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. Werner Laude webagentur.la...@gmail.com -- You received this message because you are subscribed

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

2012-09-25 Thread Werner Laude
. In the moment they are quite desperate looking for rails people... Berlin itself is relatively cheep to live. But rising rapidly, depends where you want to stay. Werner -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group

Re: [Rails] Insert multiple datasets - one form

2012-09-25 Thread Werner Laude
[] . How is the best way? Tried text_field_tag[] and fields_for instruction[] with no success. I don't know how to access the val in the controller. 2. Same with the radio buttons prio + the problem to mark the each line separately.. Would be great to get some idea.. Thanks Hi Werner, my

Re: [Rails] Insert multiple datasets - one form

2012-09-25 Thread Werner Laude
://groups.google.com/groups/opt_out. Werner Laude webagentur.la...@gmail.com -- 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

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

2012-09-25 Thread Werner Laude
Am 25.09.2012 um 15:35 schrieb powi corestudios...@gmail.com: Santiago.. Hi Werner. Well I'm 24, I have a lot of experience generally on computers and web development (~10 years). So what would you aim for if you were me? It's going to be a full-time work, I'm going to be a part

[Rails] Insert multiple datasets - one form

2012-09-24 Thread Werner
Hello.. I have a form: %= form_for @instruction_user, :url = some_path do |f|% % @users.each do |user| % %= user.name % %= f.input :prio, collection: 1..5, :as = :radio_buttons% %= f.text_field :remark% %= check_box_tag instruction_user_ids[], #{user.id} % controller: if

[Rails] Set a query filter

2012-09-21 Thread Werner
Hallo. I have a user and a skill table joined in a SkillUser table. (has many through) Now I try to get all Skills listed which are not already in the join table for user 1 In other words: user 1 has entries in the SkillUser table for skill 1 and 2. And I want to get skill 3...to in the

Re: [Rails] Set a query filter

2012-09-21 Thread Werner Laude
Am 21.09.2012 um 17:40 schrieb Hassan Schroeder hassan.schroe...@gmail.com: On Fri, Sep 21, 2012 at 2:48 AM, Werner webagentur.la...@googlemail.com wrote: Hi Hassan.. I have a user and a skill table joined in a SkillUser table. (has many through) Now I try to get all Skills listed which

Re: [Rails] Set a query filter

2012-09-21 Thread Werner Laude
Am 21.09.2012 um 17:47 schrieb Hassan Schroeder hassan.schroe...@gmail.com: On Fri, Sep 21, 2012 at 8:46 AM, Werner Laude webagentur.la...@googlemail.com wrote: can you give me a practical sample..thanks I just did :-) This idea Skill.all - user.skills is totally new to me.. I

[Rails] Re: mark multiple results

2012-09-20 Thread Werner
Thanks.. this is helpfull Greetings On Wednesday, September 19, 2012 6:09:48 PM UTC+2, Ruby-Forum.com User wrote: class User attr_accessor :id, :name def initialize(id, name) @id = id @name = name end end charlie = User.new(9, 'Charlie') fred = User.new(1,

[Rails] mark multiple results

2012-09-19 Thread Werner
Hi... I have a query @users = User. ..some finding code % @users.each do |u| % li%= u.user_id %%= u.user.name %/li Result is something like this: • 1 fred • 1 fred • 9 charlie The result could be 10 different user and/or some could be double or triple. I want to css mark them when

[Rails] Re: Re: mark multiple results

2012-09-19 Thread Werner
Hi Javier.. I want to show all entries..they have different other attributes but the same user (name)..thats why group_by is not what I can use. Just want to mark them 'bold' ..so I need a true/false for every result item.. Thanks so far.. Werner On Wednesday, September 19, 2012 8:45:11 PM

[Rails] Create multiple records on model

2012-09-12 Thread Werner
form: %= form_for @instruction_user, :url = new_fb_instruction_users_path do |f| % % @users.each do |user| % %= user.name % %= fields_for instruction[] do % %= f.text_field :remark_tl% % end % %=

[Rails] has many through + additional value

2012-07-18 Thread Werner
in the db? I can't find a solution Googling. Would be great to get some help.. tried this: hidden_field_tag skill_users[][skill_id], skill.id text_field_tag skill_users[][rating] but no success. Thanks Werner -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] passing data

2012-06-19 Thread Werner
Hello. I need some help with this: I have a link to open a modal window: %= link_to instruct.instruction.name, #myModal, :data = {:toggle = modal, :id = instruct.id}, :class= openModal% and a coffeescript $(.modal-body #result).html $(this).data(id) Shows me the result in the html: span

Re: [Rails] JQuery + Coffeescript

2012-05-11 Thread Werner Laude
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: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com

[Rails] JQuery + Coffeescript

2012-05-10 Thread Werner
Hi..I would be happy to get some support. What I want is: 1. a query field#type in some letters looking for a name 2. a dynamic updated list according to the typed-in letters What I have: #view %= text_field_tag :query% ul id='results' %@clients.each do |client|% li%=

Re: [Rails] Re: JQuery + Coffeescript

2012-05-10 Thread Werner Laude
Am 10.05.2012 um 09:30 schrieb Frederick Cheung: Hi Fred thanks.. On May 9, 12:58 pm, Werner webagentur.la...@googlemail.com wrote: What I have: #view %= text_field_tag :query% ul id='results' %...@clients.each do |client|% li%= client.name%/li %end% /ul

[Rails] Re: Error: uninitialized constant MysqlCompat::MysqlRes

2011-02-16 Thread Matthew Werner
Hi All, This has been the most thorough discussion of the topic I've found. I've spent far too much time trying to get this stupid gem to work. I'm going to post the information i've got and I'm praying someone out there will be able to help me. ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174)

[Rails] Re: Errors when freezing rails

2009-10-10 Thread Scott Werner
In case anyone comes across this problem still (I'm a sucker and still using 2.2) on vista64, the sleep(10) wasn't enough, but sleep(30) worked. Hope this helps anyone still having trouble. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Routes in a migration?

2008-12-11 Thread Matt Werner
So this is a strange request, but I'm writing a large migration inserting a lot of content into my db. Some of the entries have a link to another section of the site in the text column. I'd like to use the routes that I have set up, but they aren't available. Any ideas how to make the routes

[Rails] Problem during validation

2008-12-05 Thread Werner Laude
will not be shown again..! Looks like the 'partial_choice' is not getting information then. I dont see the point where to feed that info in again. Thanks for your help Werner --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[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 -- Posted