I'm thinking, move the option list to a named_scope that takes an argument, then something like:
<table-plus with="&ModelName.by_state(@my_option)" part="table_by_state"> Then you should be able to use hobo's part mechanism but you'll have to poke a little to see how to make it update a part from JS. On Nov 12, 3:54 am, Pete <[email protected]> wrote: > Hi, > > I am trying to update a page I have which displays a table of data, > but which I would like to dynamically update depending on what is > selected in the <select-input> field. > > I have a controller with a method containing the table plus info - but > in my view, I would like to dynamically change the content of the > table plus, I would imagine I could change something here....... > > <table-plus with="&@myOption" fields="field1, field2etc" > > > where myOption is the result of the select-input field, > > <select-input options"&[['Latest', '@latestFinished'], ['All', > '@allFinished'] ]", onchange="update @myOption" /> > > @latestFinished, and @allFinished are defined in my Controller using > my own named_scopes to gather the relevant data. I realise my select > input is probably completely wrong, but is there something along these > lines that will work? -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
