Displaying 7 results from an estimated 7 matches for "tessner".
Did you mean:
messner
2007 Jul 24
4
spec''ing helpers that use controller
...11 seconds
1 example, 1 failure
The helper spec doesn''t know about "controller". Would I have to mock
the controller? If so, how? If not, what would be the solution to
writing a spec for this or any helper that might use "controller"?
--
Rick
rick.tessner at gmail.com
2006 Jul 25
2
Model relationship confusion ...
Hi all,
I''m thinking this must be pretty straightforward, but I''m finding
myself kind of going in circles in trying to model a simple "private
messaging" app.
I have two models: user and message
User
has many messages
Message
has a sender (User)
has many recipients (Users)
I''m at a bit of a loss as to how best define the relationships that
occur in
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
...a
controller method that does something of the form:
method_a.method_b.find
Pasted code/spec/errors here
* things_controller http://pastie.caboo.se/69136
* things_controller_spec http://pastie.caboo.se/69137
* Errors w/ find(:all) http://pastie.caboo.se/69138
--
Rick
rick.tessner at gmail.com
2006 Jul 14
5
Acts_As_Taggable Plugin multiple controllers.
I have Acts_As_Taggable Plugin working. I have a HR controller and a
sales controller.
I have a document in hr tagged whitepaper and a differnent document in
sales tagged whitepaper
when I am in hr I see the hr document tagged with whitepaper and not
the sale document (what I want). but if I click on the tag whitepaper
I return two documents, hr and sales. I just want to return the hr
document
2006 Mar 10
5
case insensitive search
I am having trouble with a simple gallery search.
I type in a segment of the address and i only
seem to be getting results if I use the correct case.
This is in my Gallery controller:
def search
@gallery = Gallery.find(:all, :include => :property,
:conditions => "address LIKE ''%#{@params[:keywords]}%''")
end
On a different note:
I am having
2006 Mar 14
3
Simple search on joined table
Looking for some guidance, I seem to be caught in the weeds.
I want to do a search on fields in a master/detail relationship.
E.g. manufacturer owns many parts. I want to search on the
manufacturer name, part name and part number, then return the full set
of results.
I have tried to use the .find method and create my own model .find
method using a SQL statement, but then the results do not
2006 Jul 09
3
Mongrel and proxying with Apache 2 mod_proxy
Hi all,
I''ve just spent some time going through trying to get mongrel & apache
2.0 working with mod_proxy. I thought I''d share what I''ve found in
case someone is going through the same exercise.
Of late, I''ve been using mongrel (lovely, btw) to run my rails apps.
Since I have a couple of different rails apps running on the machine,
I thought it be nice to