Just in case you didn't know how to easily get all attribute names since most of us are new to Rabl.
Use the splat operator like: attributes *ModelName.column_names
example
attributes *Users.column_names
Corey Osman
corey@logicminds.biz
678-348-0582 (Pacific Time)
Green IT and Datacenter Automation Specialist
> Just in case you didn't know how to easily get all attribute names since
> most of us are new to Rabl.
>
> Use the splat operator like: attributes *ModelName.column_names
>
>
> example
>
> attributes *Users.column_names
>
>
nice, are you following the api branch? (
https://github.com/theforeman/foreman/tree/api) and related pull requests?
Ohad
···
On Fri, Jun 29, 2012 at 8:57 PM, Corey Osman wrote:
Corey Osman
corey@logicminds.biz
678-348-0582 (Pacific Time)
Green IT and Datacenter Automation Specialist
I try and catch the emails going by, but been busy with client work at the moment creating our own JSON API using Rabl.
Corey Osman
corey@logicminds.biz
Green IT and Datacenter Automation Specialist
···
On Jun 29, 2012, at 11:18 AM, Ohad Levy wrote:
On Fri, Jun 29, 2012 at 8:57 PM, Corey Osman corey@logicminds.biz wrote:
Just in case you didn’t know how to easily get all attribute names since most of us are new to Rabl.
Use the splat operator like: attributes *ModelName.column_names
example
attributes *Users.column_names
nice, are you following the api branch? ( https://github.com/theforeman/foreman/tree/api) and related pull requests?
Ohad
Corey Osman
corey@logicminds.biz
678-348-0582 (Pacific Time)
Green IT and Datacenter Automation Specialist
Going to spend a few hours working on the API branch this weekend.
···
Sent from my iPhone
On Jun 29, 2012, at 11:18 AM, Ohad Levy ohadlevy@gmail.com wrote:
On Fri, Jun 29, 2012 at 8:57 PM, Corey Osman corey@logicminds.biz wrote:
Just in case you didn’t know how to easily get all attribute names since most of us are new to Rabl.
Use the splat operator like: attributes *ModelName.column_names
example
attributes *Users.column_names
nice, are you following the api branch? ( https://github.com/theforeman/foreman/tree/api) and related pull requests?
Ohad
Corey Osman
corey@logicminds.biz
678-348-0582 (Pacific Time)
Green IT and Datacenter Automation Specialist