Mobile Safari user-agent causes 406 Not Acceptable error...

2010-01-01 Thread Jim
I first noticed this on an iPhone running iPhone OS 3.1.2: ActiveScaffold is issuing an SQL request (according to the log file) of SELECT "foo".* FROM "foo" ORDER BY foo."id" ASC LIMIT 9 OFFSET 0 and this causes something to occur internally that results in a 406 Not Acceptable response.

Re: Mobile Safari user-agent causes 406 Not Acceptable error...

2010-01-01 Thread Jim
On Jan 1, 7:59 am, Jim wrote: > I first noticed this on an iPhone running iPhone OS 3.1.2: > ActiveScaffold is issuing an SQL request (according to the log file) > of > > SELECT "foo".* FROM "foo" ORDER BY foo."id" ASC LIMIT 9 OFFSET > 0

Re: Mobile Safari user-agent causes 406 Not Acceptable error...

2010-01-09 Thread Jim
Time to beg ;-) Anyone else experiencing this issue? My "fixes" had undesirable side effects... most controller actions are defaulting to the respond_to of xml, and controllers that are being handled by ActiveScaffold are defaulting to the iphone respond_to unless I specifically tell an action to

Form helper for polymorphic has_many

2011-09-15 Thread Jim
r a nested options list display, merely the form override for the edit form. Thanks in advance for any ideas. Jim -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to activescaff

Re: Form helper for polymorphic has_many

2011-09-15 Thread Jim
I forgot to mention that this is using Rails 3.0.10 with the active_scaffold gem from a week ago. -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to activescaffold@googlegroups.com. To u

Re: Form helper for polymorphic has_many

2011-09-20 Thread Jim
> It should work with 3.0.23. You can try with attribute_form_column too. It did work with the attribute_form_column format. Thank you very much! Jim -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To

Re: Form helper for polymorphic has_many

2011-09-21 Thread Jim
On Sep 20, 11:32 am, Jim wrote: > It did work with the attribute_form_column format. This did work, but now that I have another model that is optionable, I'd like to differentiate the options available. Unfortunately, the other helper is loaded so the same options show for both mod

Re: Form helper for polymorphic has_many

2011-09-22 Thread Jim
On Sep 21, 7:35 pm, Jim wrote: > Is there any way to prevent other helpers from being loaded? A bit of googling pointed out that I can call clear_helpers in the controller to prevent helpers from other controllers from being loaded. This works very well. Jim -- You received this mess

Stack level too deep

2012-06-01 Thread Jim
clude a render statement from the index action. Is that no longer the case? Jim -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To view this discussion on the web visit https://groups.google.com/d/msg/act

Re: Stack level too deep

2012-06-02 Thread Jim
Apparently you cannot render an ActiveScaffold table in a 'list' action either. However, I do have it working now. Thanks for the help. -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To view this discussion on the we

Numeric columns automatically formatted

2012-06-02 Thread Jim
onths ago in Rails3 didn't format numbers by default. What would cause this behavior to be different from one project to another? Jim -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To view this discuss

Action Link to reload entire scaffold but not entire page

2012-06-04 Thread Jim
ange the action link and list label. I have added the action link with the following options: :type => :collection, :page => false, :position => false, :action => 'index', parameters = {:show_deleted => 0} I tried also specifying :inline => true, but that didn't h

Re: Numeric columns automatically formatted

2012-06-05 Thread Jim
same behavior across both projects. Sorry for wasting time on a non-issue. Jim -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To view this discussion on the web visit https://groups.google.com/d/msg

Re: Action Link to reload entire scaffold but not entire page

2012-06-05 Thread Jim
alse}. Inline has to be false or the render :update fails, and any other kind of rendering embeds the text into the inline adapter. Jim -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To view this discussion

Re: Embedded Scaffold only works after refresh

2015-12-01 Thread Jim
e this stackoverflow.com answer for ideas on how to reliably execute javascript on page load: http://stackoverflow.com/questions/18770517/rails-4-how-to-use-document-ready-with-turbo-links Jim Crate -- You received this message because you are subscribed to the Google Groups "ActiveScaffo

Re: Embedded Scaffold only works after refresh

2015-12-01 Thread Jim
load_embedded(document); would then find that placeholder and reload it. It works, but is there a more direct way to refresh an embedded scaffold? Jim Crate -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. T

Re: Embedded Scaffold only works after refresh

2015-12-02 Thread Jim
ector for embedded'); embedded.load(embedded.data('refresh'), function() { $(this).trigger('as:element_updated'); }); Clean and simple! Thanks for your help. Jim Crate -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails

Re: Embedded Scaffold only works after refresh

2016-01-31 Thread Jim
I just had the opportunity to update my code, this works very nicely. Thank you very much! Jim On Thursday, December 3, 2015 at 6:01:28 PM UTC-8, Sergio Cambra wrote: > > I'm adding a ActiveScaffold.reload_embedded('selector') method with your > code to master. >

Re: difficult namespacing objects using render :active_scaffold

2016-02-19 Thread Jim
t: @event.id }, params: {id: nil} ) %> Jim Crate On Thursday, February 18, 2016 at 8:55:52 PM UTC-5, Jason FB wrote: > > I'm having some difficulty adding some namespacing to objects I use with > ActiveScaffold > > > I have a subview, shown here in haml, that works for a join ta

Bitfield bridge

2016-08-25 Thread Jim
The bitfield bridge isn't activating in my app. I thought it used to just work. I don't see anything in the documentation related to specifying a particular form_ui setting. Any ideas how I can start debugging this? Jim -- You received this message because you are subscribed to

Re: Bitfield bridge

2016-09-17 Thread Jim
o exclude some columns depending whether it was displayed nested. If I don't do that, the bitfield works perfectly. In this case, I don't even need this functionality now so the fix is easy. Thanks, Jim On Friday, August 26, 2016 at 3:02:01 AM UTC-4, Sergio Cambra wrote: > &g

Reload configuration

2017-11-08 Thread Jim
I know I could do what I need using an override, but figured I'd ask and see if there was a way to update the configuration. Thanks, Jim Crate -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe

How to close show view after clicking link

2018-11-27 Thread Jim
I added a link to a show action view to mark an item as processed. Using process_action_link_action in the action, the row is updated, but the show view is not updated and is still showing. Is there an easy way to close the show view as if the cancel link was also clicked? Alternatively, if the

Field search on virtual attribute

2019-02-09 Thread Jim
turned properly. However, search_sql still has to be set to something in order for the field to show in the search form. Jim Crate -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and s

Override show action

2008-09-15 Thread Jim
oller, and adding my own views (new and edit). Works great. But when I do the same thing for show (show action and show view) AS takes over and tries to render its own framework. Hence errors like the below. What am I missing to provide my own show action/view?? Thank you heaps in advance!!

Re: Override show action

2008-09-16 Thread Jim
Nevermind. I realize how to do it now...Jim. On Sep 15, 3:57 pm, Jim <[EMAIL PROTECTED]> wrote: > This is such a beginner question. I'm using the latest AS from github > with rails 2.1.1. I have a nested model and want to write my own show > action. I have successfully w

Re: Override show action

2008-09-16 Thread Jim
Turns out using edit.html.erb to override the edit.rhtml works just fine, but show apparently wants to be overridden with show.rhtml. On Sep 15, 3:57 pm, Jim <[EMAIL PROTECTED]> wrote: > This is such a beginner question. I'm using the latest AS from github > with rails 2.1.1

has_many xxx, :finder_sql => yyy

2008-09-17 Thread Jim
:finder_sql option for the association? Any idea what might be going on? Thanks!! Jim. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this gr

Re: has_many xxx, :finder_sql => yyy

2008-09-17 Thread Jim
Doh. I should have been using :conditions hash instead of :finder_sql. A_S works just fine! Jim. On Sep 17, 2:12 am, Jim <[EMAIL PROTECTED]> wrote: > I have a Store model that has_many locations. Locations can also owned > by other entities, so the Store model qualifies the has_many

Upgrading wrecked list colors; no tiger striping

2010-03-23 Thread Jim Gagne
I've been an EXTREMELY happy user of Active Scaffold. It's worked great for three years. I have to move to a new ISP and in the process upgrade Rails 1.2.3 -> 2.3.5. That's gone well. One remaining bug: the default AS tiger striping (alternate rows different colors) disappeared, and now everything

Re: Upgrading wrecked list colors; no tiger striping

2010-03-23 Thread Jim Gagne
Forgot to mention: I upgraded to the latest AS too. -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to activescaff...@googlegroups.com. To unsubscribe from this group, send email to act

Re: Upgrading wrecked list colors; no tiger striping

2010-03-23 Thread Jim Gagne
On Mar 23, 11:42 am, Jim Gagne wrote: > I've been an EXTREMELY happy user of Active Scaffold. It's worked > great for three years. I have to move to a new ISP and in the process > upgrade Rails 1.2.3 -> 2.3.5. That's gone well. One remaining bug: the > default AS

Re: Upgrading wrecked list colors; no tiger striping

2010-03-23 Thread Jim Gagne
On Mar 23, 11:42 am, Jim Gagne wrote: > The default AS tiger striping (alternate rows different colors) > disappeared, and now everything is the same color as the overall CSS. I FOUND THE ERROR!! The stylesheet.css file omits the background-color attribute in two places: 1. .active-sc

Re: Upgrading wrecked list colors; no tiger striping

2010-03-24 Thread Jim Gagne
> > It was changed, I can't remember why, to .active-scaffold tr.record which > works > too. > > -- > Sergio Cambra .:: entreCables S.L. ::. You're right I saw that, but the setting a new tr color does NOT override a global td color set elsewhere on the site. -- You received this message becaus

Re: Upgrading wrecked list colors; no tiger striping

2010-03-28 Thread Jim Gagne
On Mar 25, 4:23 am, Ed W wrote: > On 24/03/2010 02:46, Jim Gagne wrote: > > > > > On Mar 23, 11:42 am, Jim Gagne  wrote: > > >> The default AS tiger striping (alternate rows different colors) > >> disappeared, and now everything is the same color as t

Link directly to edit form

2018-07-24 Thread Jim Crate
I’m not sure how much of the styling is linked to the table or higher-level containers Any pointers would be appreciated. Jim Crate -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this grou

Re: How to close show view after clicking link

2018-11-28 Thread Jim Crate
ActiveScaffold.remove('<%= element_row_id action: :nested %>'); <% end %> and it works perfectly. Jim Crate > On Nov 28, 2018, at 12:34 AM, Sergio Cambra wrote: > > Hi > > There is no way inside ActiveScaffold to update show view, if you want to > update row