Displaying 2 results from an estimated 2 matches for "job_post".
Did you mean:
job_list
2008 Mar 21
5
foreign key question
Hi-
Say I have a db with following schema:
MyTable:
Id, name, user_id, date
User:
id, name, description
I know that I want to add "belongs_to" in my "user" model but how can
I enforce a proper constraint on the user_id in "MyTable"? Is this
done using a has_one in the "MyTable" model?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You
2011 Mar 27
0
replacement for functionality from acts_as_textiled
...ough forked into another gem (https://
github.com/dasil003/acts_as_sanitiled) the developer no longer
sanctions the use of either.
Here is a section of code for a textiled box on our site.
<label>Post details</label>
<div style="width: 600px">
<%= textile_editor :job_post, :details, :class=>''text_field'' %>
</div>
The model for the job_post.rb has the following line also:
acts_as_textiled :details
So, what gem or method can I use in Rails 3.0.x to have bolding,
italic, etc... markup in this field. I hope my question makes sense.
--...