Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > Programming and XML > Ruby on Rails and XML



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-2008, 05:44 PM
Administrator
 
Join Date: Apr 2008
Posts: 3,778

Default Help with habtm models in one form



Hi I have a post and a category model br class Post lt; ActiveRecord::Base br has_and_belongs_to_many :categories br end br class Category lt; ActiveRecord::Base br has_and_belongs_to_many osts br end br I created join table migration files br Now I wanna create category while creating post I mean user can choose br category or add a new category to this post how can i imlement this?

More...
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 12:02 PM.
Style Developed by Epic Designz