Because .hide() does not remove element, but hides it. Use .remove() if
you want to remove element from the DOM tree.
On Sat, Jan 20, 2018, at 05:34, fugee ohu wrote:
> I hid a div in a form using jquery hide element, it's no longer
> visible on the page view, but it still shows up in source
On Sat, Jan 20, 2018 at 11:54 AM, kenatsun wrote:
> Using scaffold, I generated two models, *Person *and *Offer*, and the
> forms to manage them. *Offer* has a belong_to association with *Person*.
> After running the generator, all the forms immediately worked fine.
>
> But
Using scaffold, I generated two models, *Person *and *Offer*, and the forms
to manage them. *Offer* has a belong_to association with *Person*. After
running the generator, all the forms immediately worked fine.
But then I discovered an external requirement that the foreign key column
in
I hid a div in a form using jquery hide element, it's no longer visible on
the page view, but it still shows up in source Why?
--
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
On Friday, January 12, 2018 at 9:02:27 PM UTC-5, Walter Lee Davis wrote:
>
> This is a basic part of what is called a many-to-many relationship, which
> is what you describe here. These relationships always rely on a third table
> in any relational database-backed application (i.e. this is not
On Friday, January 19, 2018 at 12:09:38 PM UTC-5, Walter Lee Davis wrote:
>
>
> > On Jan 19, 2018, at 11:35 AM, fugee ohu
> wrote:
> >
> > I'm using form_for @object but i need to include in the form a value
> that's not a valid method for the object, but the controller
> On Jan 19, 2018, at 11:35 AM, fugee ohu wrote:
>
> I'm using form_for @object but i need to include in the form a value that's
> not a valid method for the object, but the controller needs the value How do
> I do that?
Where will this value come from (in the form)? Are
Did you use the self.table_name = 'servicename_user' assignment in your User
class? That's a critical part of getting a legacy database to work with Rails.
Walter
> On Jan 19, 2018, at 1:17 AM, 정인중 wrote:
>
> I am switching old systems created with php to Rails.
> I want to
I'm using form_for @object but i need to include in the form a value that's
not a valid method for the object, but the controller needs the value How
do I do that?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from
I have addresses, people and relationships tables Addresses has no
person_id field, People has no address_id field They both rely on the
relationships table using has_many_through The problem is when I create a
new object @address i can't assign person_id to the object because it's an
unknown
On Friday, January 19, 2018 at 8:47:29 AM UTC, 정인중 wrote:
> Failure/Error: it { should validate_presence_of(:email) }
>
>
> LoadError:
> Unable to autoload constant USER, expected
> /Users/injung/Github/api/app/models/user.rb to define it
>
Are there any references to USER
I am switching old systems created with php to Rails.
I want to use the table 'servicename_user' of the previous system in the
User model.
There is no problem with the console or controller, but when I try to
create the rspec test, I get the following error message:
Failure/Error: it {
12 matches
Mail list logo