try <%= f.collection_select( :artist, :genre_id, Genre.all, :id, :name) %>
On Sunday, May 28, 2017 at 4:17:53 PM UTC-4, fugee ohu wrote:
>
> I wanna add a dropdown menu to my index view for the index action of my
> artists_controller Trying to use collection_select but it responds undefined
>
Your line:
params.require(:product).permit(:title, :template, :price, :msrp, :enddate)
needs to be:
params.require(:product).permit(:title, :template, :price, :msrp, :enddate,
:category_id)
On Tuesday, October 4, 2016 at 3:15:26 PM UTC-4, Joe Guerra wrote:
>
> Still unsure of what to do... this
You seem to answer your own question: you already know it's an
architectural requirement, so I'd suggest including it from the beginning.
On Friday, May 15, 2015 at 3:50:15 PM UTC-4, Leandro França wrote:
Hi there,
I'm building a new app that will need to have multi tenancy features and
I've some experience rescuing projects, perhaps I could be of help.
chris.le...@gmail.com
On Tuesday, May 12, 2015 at 12:21:08 PM UTC-4, Jon Capp wrote:
Have a project that is already in use but needs a few things finished and
ongoing support. We lost our developer to another project looking
You must either be in the wrong directory or it's a Cloud9 issue. If you go
to terminal, are the files there?
On Monday, May 11, 2015 at 8:15:15 AM UTC-4, Roman wrote:
I'm sorry if the following question has been asked before but I wasn't
able to find the answer.
I've just started going
This isn't rails-related, but for centering/laying out things neatly, I'd
suggest using something like Bootstrap and its grid system.
On Tuesday, May 5, 2015 at 12:51:42 PM UTC-4, Elizabeth McGurty wrote:
...despite monitor
On Tuesday, May 5, 2015 at 12:49:05 PM UTC-4, Elizabeth McGurty
UTC+3, Chris Lerum wrote:
In short, yes. See this lovely article; notice the conspicuous absence of
any talk of changing table names:
http://blog.makandra.com/2014/12/organizing-large-rails-projects-with-namespaces/
On Wednesday, April 29, 2015 at 1:59:04 PM UTC-4, Rafael Adel wrote:
I can
https://github.com/chrislerum/factory setting table_name seems to be the
sweet spot, working now
On Thursday, April 30, 2015 at 8:01:49 AM UTC-4, Chris Lerum wrote:
you could try, in the model, self.table_name = seven_gallery_photos etc.
On Thu, Apr 30, 2015 at 4:09 AM, Rafael Adel
It's to your credit that you got that working, but it's far from
conventional - why not post your attempt to get associations working, with
your expected result vs. actual, and you'll soon be greeted with a nice
'AHA!' moment. I bet.
On Thursday, April 30, 2015 at 10:18:28 AM UTC-4, Elizabeth
https://github.com/chrislerum/factory
I tried whipping up an app with your code, the controller test passes fine
for me, see if it works for you and compare.
On Wednesday, April 29, 2015 at 10:32:47 AM UTC-4, Rafael Adel wrote:
I'm trying to create a `photo` factory that's in a many to one
It may help if you showed us this code of which you speak.
On Wednesday, April 29, 2015 at 10:52:06 AM UTC-4, Gm wrote:
Hi, I'm using a custom validation method to validate some logic.
But I realized that the database query is running two times.
So the database is being called twice.
The
in
front of the table names and FK. But in yours there's none since it's a
normal app.
But is this the cause ?
On Wednesday, April 29, 2015 at 6:53:18 PM UTC+3, Chris Lerum wrote:
https://github.com/chrislerum/factory
I tried whipping up an app with your code, the controller test passes
fine
is that in my case there's namespace in
front of the table names and FK. But in yours there's none since it's a
normal app.
But is this the cause ?
On Wednesday, April 29, 2015 at 6:53:18 PM UTC+3, Chris Lerum wrote:
https://github.com/chrislerum/factory
I tried whipping up an app with your
13 matches
Mail list logo