oup_by { |date,hour|
> date.strftime("%-m/%-d/%Y") }
>
> I hope it works.
>
> Regards,
> Everaldo
>
> On Sat, Feb 11, 2012 at 11:40 PM, edward michaels wrote:
>
>
>
>
>
>
>
> > I have an active record Times table with a date column and an
I have an active record Times table with a date column and an hour
column. The hours are unique but the dates can have many hours. How
would I create a hash that mapped a date key to its hours? Something
like:
hours_per_date['2/14/2012'] => ['6:00', '8:00', '11:00', '2:00']
Thanks
--
You rec
users/1"}
So it's looking for a 'users/1' action but of course it's not going to
find it in the controller.
On Feb 6, 5:02 am, Peter Vandenabeele wrote:
> On Mon, Feb 6, 2012 at 12:16 AM, edward michaels wrote:
> > Hi all,
>
> > I'm trying to t
Hi all,
I'm trying to test that my users show page renders. The resource has
the route /users/:id
How would I code that for an Rspec test? So far I've tried these four
ways:
it "should have a users show path" do
get user_path(:action => 'show')
end
it "should have a users show path" do
ge
4 matches
Mail list logo