On 12 January 2016 at 09:13, Alex Marie wrote:
> [snip]
>
> You're amazing Colin! It worked perfectly!
> You just made my day I can't thank you enough
Glad to be of help, but please do work through that tutorial. If you
missed that bit of the magic of rails then no doubt you have missed
othe
Colin Law wrote in post #1180547:
> On 12 January 2016 at 08:42, Alex Marie wrote:
>>
>> def shop
>> @listings = Listing.where(seller: User.find(params[:id,]))
>> @user = User.find(params[:id])
>>end
>
> Better to use
> @user = User.find(params[:id])
> @listings = @user.listings
>
> That
You're amazing Colin! It worked perfectly!
You just made my day
--
Posted via http://www.ruby-forum.com/.
--
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 it, send an emai
3 matches
Mail list logo