On 15 Nov 2016 11:02 p.m., "Joe Guerra" wrote:
>
> OK, maybe I just need to see an example of how to call a method from a
button-to button.
No you need to show us what you have done and tell us what is not working.
Which bit is failing? Is it getting to your controller
OK, maybe I just need to see an example of how to call a method from a
button-to button.
On Nov 16, 2016 1:22 AM, "Colin Law" wrote:
> On 15 November 2016 at 16:55, Joe Guerra wrote:
>
>> ok, it's looking for a view at that route (or path), but my
On 15 November 2016 at 16:55, Joe Guerra wrote:
> ok, it's looking for a view at that route (or path), but my method says to
> render a partial file (modal dialog page).
>
> Hmmm, did I miss something?
>
Without more information it is impossible to say.
Colin
>
> On
ok, it's looking for a view at that route (or path), but my method says to
render a partial file (modal dialog page).
Hmmm, did I miss something?
On Tuesday, November 15, 2016 at 2:35:31 AM UTC-5, Colin Law wrote:
>
> On 14 November 2016 at 23:17, Joe Guerra > wrote:
>
On 14 November 2016 at 23:17, Joe Guerra wrote:
> Hi,
>
> I'm trying to run a method in one of my controllers using a button_to
> command. How is this accomplished?
>
> So far, I've got <%= button_to "Add to Cart", action: "add_to_cart" %> in
> my products page
>
> I
Why don't you try it out :) Yes it must work, but are you passing the
product / item id to be added and the quantity to be added?
On Tue, Nov 15, 2016 at 4:47 AM, Joe Guerra wrote:
> Hi,
>
> I'm trying to run a method in one of my controllers using a button_to
> command.
Hi,
I'm trying to run a method in one of my controllers using a button_to
command. How is this accomplished?
So far, I've got <%= button_to "Add to Cart", action: "add_to_cart" %> in
my products page
I defined a add_to_cart in my product controller, and created a route for
it.
Am I on
I have the below model that gets created with create action with :running
field having value of false.
class Portal
include Mongoid::Document
field :url, :type = String
field :user, :type = String
field :password, :type = String
field :running, :type = Boolean, :default = false
end
8 matches
Mail list logo