Re: [Rails] Help with the has_one model implementation

2012-03-31 Thread Bente Pieck
Try rake routes - and you will see, there really isn't defined a student_acounts_path Try: resources :students do resources :accounts end or alternatively in your show (if you want to add a show, edit or update-action in your accounts_controller without an :id param) form_for [@student,

Re: [Rails] one form for one model with nested resources.

2011-02-04 Thread Bente Pieck
:doc_type %> <%= doc.text_field :doc_type %> <%= doc.error :doc_type %> <% end %> <%= f.submit %> It adds deliveries but not document. Some advices? -- best regards Bente Pieck -- You received this message because you are subscribed to the Google Group

Re: [Rails] Re: is this line of code right in Ruby 1.9.2 / Rails 3

2011-02-02 Thread Bente Pieck
the first is not defined ... but is it a Ruby function or a Rails function I know a anArray.fetch( aString) but not this one .... On 2 fév, 16:07, Bente Pieck wrote: Is this part of a capistrano script? <https://github.com/capistrano/capistrano/wiki/2.x-DSL-Configuration-V...>If so then

Re: [Rails] is this line of code right in Ruby 1.9.2 / Rails 3

2011-02-02 Thread Bente Pieck
t;config/#{fetch(:db_file, 'database.yml')}") =>fetch(:db_file, 'database.yml') ...what's is this function fetch() ? I know the fetch(key, *extras) in ActiveSupport, but this is not the case.... any suggestion ? thanks -- best regards Bente Pieck -- You

Re: [Rails] How to exlude Weekends in reports?

2011-02-01 Thread Bente Pieck
ase off those dates. But the problem I cant figure out is how to exclude the weekends(Sat, Sun) The report should just give data for Mon-Fri. Thanks in advance for any help! -- best regards Bente Pieck -- You received this message because you are subscribed to the Google Groups "Ruby on R

Re: [Rails] Re: How to use validates?

2011-01-31 Thread Bente Pieck
slice!(:if,:unless,:on,:allow_blank,:allow_nil) only these 5 options are possible global-options. :message is not one of them. So I am sure, your way won't do what you want it to do. On 28/01/11 17:03, Paul Bergstrom wrote: Bente Pieck wrote in post #978180: On 28/01/11 15:54, Paul Bergstrom wro

Re: [Rails] How to use validates?

2011-01-28 Thread Bente Pieck
w? http://railscasts.com/episodes/211-validations-in-rails-3 or use the plugin dynamic_form and the old <%= f.error_messages %>-Helper in your form -- best regards Bente Pieck -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

Re: [Rails] How to use validates?

2011-01-28 Thread Bente Pieck
{:message => "First name is missing"} ? -- best regards Bente Pieck -- 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 th

Re: [Rails] Symbols not recognized after nesting routes - NoMethodError in Timesheets#new

2011-01-27 Thread Bente Pieck
. 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- best regards Bente Pieck -- You

Re: [Rails] Re: Help needed understanding "fields_for" and resultant controller code

2010-12-29 Thread Bente Pieck
e %> <% end %> ... <% end %> and with: if @employee.update_attributes(params[:employee]) do something else render :edit end And I hope you will get, what you want to get. -- best regards Bente Pieck -- You received this message because you are subscribed to th

Re: [Rails] Re: DRY a named scope

2010-07-22 Thread Bente Pieck
sense for your application or not... >> >> -philip > > -- > 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 f

[Rails] Which plugin is good for role-administration?

2009-09-04 Thread Bente Pieck
Hi, Sorry I am realy new in rails (and not good in active English, too *g*). I need to administrate users with two roles. I have seen Aegis and it seems to be very good for my needs - but as long as I haven't found the clue, I can give there every user only one role. Do you know another pl