not as lucky

Forums > Book - Chapter 9 > not as lucky

Login to post a new topic


9:
Author Message
railscoder
Member since 12 Jul 18:32
0 posts

i decided that i did not want the relation to be called friendship and the friend to be called friend: instead i called them relationship and relation same thing with the table which i called relationships.
bad decission!
i took all the code as it was shown in the book and replaced ‘friend’ with ‘relation’.
now i have an error which just eludes my debug arts
’ NoMethodError in Relations#index
Showing app/views/relations/_relationship_with_edit.rhtml where line #6 raised:
undefined method `xfn_relation’ for #
Extracted source (around line #6):
3: <%= link_to relationship_with_edit.relation.username,
4: user_path(relationship_with_edit.relation),
5: :class => ‘xfnRelationship’,
6: :rel => xfn_rel_tag(@user, relationship_with_edit),
7: :id => “relation-#{relationship_with_edit.relation.id}” %>
8:


alan
Member since 26 Jun 23:06
0 posts

Looks to me like it’s Rails trying to be clever re. the ‘xfnRelationship’ classname. Try XfnRelationship instead.