#rubyonrails - Mon 19 Feb 2007 between 00:01 and 00:19

NY Lost Funds



eghjayteehello
bentlegenhey guys - how do i run rails core tests?
wilfordbrimleySkiz: i'm wondering how hard it would be to make it poly on the subject in addition to the object... so both a user and an object representing a group of users could favorite something..
bentlegendo i have to run each lib separately?
eghjayteeIs there a way to submit a form, but just have it submit a new uri? An example would be submitting a form that would load the following page: /images/search/term, where term has been submitted through the form
I feel like I am missing something
simple
Skizwilfordbrimley: it really ends up not being very optimal, you may check out my preference plugin
current_user.has_favorite @venue
well lemme c
its more of a X has Y for Z
victoridpes AR do eager loading?
AnalogHoleyes
victorianything special I need to declare?
wilfordbrimleySkiz: ok i'll check out the preference plugin too..
AnalogHolevictori: nope, just add :include to your find.
;include => [:someassociated, :model]
tavilachguys: im trying to use in_place_editor
here is what i do:
inside my joke list, i have: <%= in_place_editor_field "joke", "body" %>
at the top of my joke controoler, i have: in_place_edit_for :joke, :body
buit i ssee now javascript happening or anything
its all static
whats going on?
joevandyktavilach: are you including the javascript libraries
?
tavilachno
lol i didnt know what i needed to do
joevandykgotta do that :)
tavilachhow do i include those
joevandykhttp://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html#M000591
jstew<%= javascript_include_tag :defaults %>
joevandyktavilach: so <%= javascript_include_tag :defaults %>
tavilachwhere?
joevandyktop of the page
jstewin your layout or directly in the view
joevandykapp/views/layouts/application.rhtml is a good place
tavilach: you really should learn how javascript and stuff works
tavilachyeah i just started sorry
jstewgnight, It's past my bedtime

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 114 121 

IrcArchive

NY Lost Funds