> On Aug 22, 2018, at 1:28 PM, Joe Guerra wrote:
>
> I've got to fix my default scope.
Default scopes are a serious anti-pattern, and cause more pain than they solve.
I cannot think of one time I used them that I didn't regret it later.
Walter
>
> On Wed, Aug 22, 2018 at 1:23 PM, Joe Guerr
I've got to fix my default scope.
On Wed, Aug 22, 2018 at 1:23 PM, Joe Guerra wrote:
> ok, so I got it working...
>
> the process is add to cart my show page updates quantity... and if
> it reached 0 now i've got it updating and redirecting to root_path.
>
> works like a charm. (not sure
ok, so I got it working...
the process is add to cart my show page updates quantity... and if it
reached 0 now i've got it updating and redirecting to root_path.
works like a charm. (not sure if that's optimal).
On Wednesday, August 22, 2018 at 12:34:02 PM UTC-4, Colin Law wrote:
>
> On
For security concerns you might investigate rails long term support
(https://railslts.com). They maintain a 2.3.18+ version of the system
with security updates. The path to 2.3.18 is easy but it starts to get
fairly complex after that. Prototype is not supported and jquery is the
default opti
On Wed, 22 Aug 2018 at 17:17, Joe Guerra wrote:
>
> Yes, in the product controller?
>
> In
> Def show
> End
That is not a page that is a controller action, which invokes a view.
It is important to use the correct words or others will not know what
you mean. By page I assumed you meant the view.
Yes, in the product controller?
In
Def show
End
On Wed, Aug 22, 2018, 12:00 PM Colin Law, wrote:
> On Wed, 22 Aug 2018 at 16:54, Joe Guerra wrote:
> >
> > Ok, since it's on the show page I can check for that (and it did work on
> that page), but as soon as it is added I think I need to redirec
On Wed, 22 Aug 2018 at 16:54, Joe Guerra wrote:
>
> Ok, since it's on the show page I can check for that (and it did work on that
> page), but as soon as it is added I think I need to redirect to another page,
You shouldn't be doing it in a view at all, you should do it in the
action or model th
Ok, since it's on the show page I can check for that (and it did work on
that page), but as soon as it is added I think I need to redirect to
another page,
(because I don't display items that are fully funded and i got a page not
found message 404)... I'll try it soon. Some sort of congratula
On Wed, 22 Aug 2018 at 16:31, Joe Guerra wrote:
>
> ok, well I need to flip a few boolean values to begin the group order process.
Oh, you mean that when the amount goes to zero you need to take some
action? In that case that should probably be initiated by the action
that sets it zero, either d
ok, well I need to flip a few boolean values to begin the group order
process.
On Wed, Aug 22, 2018 at 11:22 AM, Colin Law wrote:
> On Wed, 22 Aug 2018 at 15:36, Joe Guerra wrote:
> >
> >
> > I know how to update records, but not sure where I should put my code
> when product qty == 0.
> > I
> On Aug 22, 2018, at 8:08 AM, Hassan Schroeder
> wrote:
>
> On Wed, Aug 22, 2018 at 6:30 AM, Robert Nicholson
> wrote:
>
>> apache 2.2.4, ruby 1.8.7, rails 2.3.8, passenger 2.2.5
>>
>> and we’re expected to migrate to
>>
>> apache 2.4.27, ruby 2.51, rails 5.2.1 and passenger 5.3.4
>
>>
On Wed, 22 Aug 2018 at 15:36, Joe Guerra wrote:
>
>
> I know how to update records, but not sure where I should put my code when
> product qty == 0.
> I do have a flash notice on the show page that displays a message when the
> last item is left.
>
> Should I put update the records on the show
> On Aug 22, 2018, at 6:30 AM, Robert Nicholson
> wrote:
>
> We have a rails application that’s been running on an old version of Rehat 4.
>
> We have to move it to Redhat 7
>
> It was
>
> apache 2.2.4, ruby 1.8.7, rails 2.3.8, passenger 2.2.5
>
> and we’re expected to migrate to
>
> ap
On Wed, Aug 22, 2018 at 6:30 AM, Robert Nicholson
wrote:
> apache 2.2.4, ruby 1.8.7, rails 2.3.8, passenger 2.2.5
>
> and we’re expected to migrate to
>
> apache 2.4.27, ruby 2.51, rails 5.2.1 and passenger 5.3.4
> Are there any migration guides that highlight the complexity involved?
😱
I know how to update records, but not sure where I should put my code when
product qty == 0.
I do have a flash notice on the show page that displays a message when the
last item is left.
Should I put update the records on the show page as well ? (when qty == 0
)
Thanks,
Joe
--
You rece
On Wed, 22 Aug 2018 at 14:30, Robert Nicholson
wrote:
> ...
> Are there any migration guides that highlight the complexity involved?
This is a good place to start
https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html
Colin
--
You received this message because you are subscribed to th
We have a rails application that’s been running on an old version of Rehat 4.
We have to move it to Redhat 7
It was
apache 2.2.4, ruby 1.8.7, rails 2.3.8, passenger 2.2.5
and we’re expected to migrate to
apache 2.4.27, ruby 2.51, rails 5.2.1 and passenger 5.3.4
This application used gems lik
17 matches
Mail list logo