Hi

I got my niggling problems fixed thank you for the responses

kind regards

On Sun, Apr 10, 2011 at 4:12 AM, Dennis saka <[email protected]> wrote:
> Hi
>
> Sure here is what i tried
>
> class Individual < ActiveRecord::Base
>   has_many :case_details, :dependent => :destroy
>  end
>
> class CaseDetail < ActiveRecord::Base
>   belongs_to :individual
> end
>
> class ClientDetailsController < ApplicationController
>   hobo_model_controller
>   auto_actions_for :individual, [:index, :create]
>   auto_actions :edit, :update, :destroy
>   auto_actions :all
>
>  end
>
> Then in added this to application.dryml
>
> <hjq-dialog id="new-case-details-dialog" position="center" minWidth="600">
>      <form with="&@case_detail ||
> new_for_current_user(this.case_details)" owner="individual"
>            without-cancel>
>        <field-list: skip="individual"/>
>        <submit: label="#{ht 'individual.actions.add', :default=>['Add'] }"/>
>      </form>
>    </hjq-dialog>
>    <hjq-dialog-open-button dialog="#new-case-details-dialog"
> class="ui-button">New Case Detail</hjq-dialog-open-button>
>
>
> thanx and appreciate all the help
>
> Kind regards
>
>
>
>
> On Sun, Apr 10, 2011 at 3:38 AM, Peter Booth <[email protected]> wrote:
>> What do you mean? Are you able to show some code?
>>
>> Sent from my iPhone
>>
>> On Apr 8, 2011, at 7:06 PM, mdfdroid <[email protected]> wrote:
>>
>>> Ok I posted too early.  I found what I was doing wrong.  I was
>>> allowing other exceptions to happen in the controller....so if anyone
>>> else is having this problem, make sure that anything you do in the
>>> controller with the values is validated before trying to save :-)
>>>
>>> On Apr 8, 5:38 pm, mdfdroid <[email protected]> wrote:
>>>> I am using dialog boxes to display forms on my page.  They are working
>>>> great, but now that I have gone back and added validates_presence_of
>>>> in my models,  some will pop up the error such as "Name can not be
>>>> empty" while others are displaying back the page for the error in a
>>>> message box?  Has anyone had this issue or know what I am may be doing
>>>> wrong?
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Hobo Users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group at 
>>> http://groups.google.com/group/hobousers?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Hobo Users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/hobousers?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to