Re: create or update?

2010-06-11 Thread kenny . ortmann
Why do you need it in the view? You shoule be able to do it in a helper. There are explainations on the wiki for overriding field values in your helper and you can specify different methods for create or update Sent from my Verizon Wireless BlackBerry -Original Message- From: Richard

Re: locale stuff

2010-06-10 Thread kenny . ortmann
I didn't think there was either, I just wanted to check with other people that have done more with the locale stuff before I pushed up the changes Sent from my Verizon Wireless BlackBerry -Original Message- From: mrbana...@googlemail.com mrbana...@googlemail.com Date: Wed, 9 Jun 2010

Re: How to override a column value just for show view

2010-05-28 Thread kenny . ortmann
I'm pretty sure you do this: def cli_outs_show_column(campaign) Cool end Sent from my Verizon Wireless BlackBerry -Original Message- From: Iñaki Baz Castillo i...@aliax.net Date: Fri, 28 May 2010 18:43:44 To: activescaffold@googlegroups.com Subject: How to override a column value just

Re: How to dissable the Create New link?

2010-05-20 Thread kenny . ortmann
Always show create is used for cases in which people want the create form to always be displayed, and is set to false by default. There might be a better way to do this, and I'm doing this from memory so it might not be completely correct, but in your contoller put a before filter

Re: Bug in show/edit view when using form_ui = :select with an Array

2010-05-14 Thread kenny . ortmann
I don't think this is a bug. The functionality that you are requesting would be a feature. Is there documentation somewhere that says the options should work with an array? Sent from my Verizon Wireless BlackBerry -Original Message- From: Iñaki Baz Castillo i...@aliax.net Date: Fri,

Re: Bug in show/edit view when using form_ui = :select with an Array

2010-05-14 Thread kenny . ortmann
No worries. If you want to make it work with an array or someone else does then I'm sure the patch would be accepted. ~Kenny Sent from my Verizon Wireless BlackBerry -Original Message- From: Iñaki Baz Castillo i...@aliax.net Date: Fri, 14 May 2010 17:27:12 To:

Re: How can i show on my list different fields with two tables ???

2010-03-19 Thread kenny . ortmann
I don't know the exact syntax off the top of my head. I'm fairly certain you can specify how many years or at least the starting year in the options, something like this config.create.columns[:birth_date].options = {:start_year = 1900} I know this has been addressed previously on the group so

Re: How to use Active Scaffold only for list view

2010-02-22 Thread kenny . ortmann
I think all you need to do for #1 is config.actions.exclude = [:create, :update, :delete] This syntax should be on the wiki http://github.com/activescaffold/active_scaffold then click wiki Do you want something to replace the ad existing? Do you just want to disable tht column? Sent from my

Re: how to display an Edit link on the expanded Show block ?

2010-02-12 Thread kenny . ortmann
I'll shoot out an email when I get to it, what blog are you talking about? Sent from my Verizon Wireless BlackBerry -Original Message- From: octimizer octimi...@gmail.com Date: Fri, 12 Feb 2010 10:02:52 To: ActiveScaffold : Ruby on Rails pluginactivescaffold@googlegroups.com Subject: Re:

Re: Active link params

2010-02-10 Thread kenny . ortmann
Can you describe your problem with a little more detail? Sent from my Verizon Wireless BlackBerry -Original Message- From: Brian Cardarella bcardare...@gmail.com Date: Wed, 10 Feb 2010 13:26:09 To: ActiveScaffold : Ruby on Rails pluginactivescaffold@googlegroups.com Subject: Active link

Re: ActiveScaffold Rails 3 Roadmap?

2010-02-10 Thread kenny . ortmann
I could be wrong but I think they addressed the routes overhead issue some in rails 3 Sent from my Verizon Wireless BlackBerry -Original Message- From: Nick Rogers ncrog...@gmail.com Date: Wed, 10 Feb 2010 16:14:16 To: activescaffold@googlegroups.com Subject: Re: ActiveScaffold Rails 3

Re: Active link params

2010-02-10 Thread kenny . ortmann
I misunderstood you, I can try to help you tomorrow, if you don't figure it out shoot me or the list another email in the morning Sent from my Verizon Wireless BlackBerry -Original Message- From: Brian Cardarella bcardare...@gmail.com Date: Wed, 10 Feb 2010 20:49:22 To: ActiveScaffold :

Re: What causes the undefined method `create' for # (NoMethodError)

2010-02-02 Thread Kenny Ortmann
can you paste the entire users_controller please? On Tue, Feb 2, 2010 at 10:43 AM, Soren Christensen so...@silikone.comwrote: Noted that there was some problem with my config.columns They looked like this: config.columns.exclude :updated_at, :created_at config.create.columns =

Re: What causes the undefined method `create' for # (NoMethodError)

2010-02-02 Thread Kenny Ortmann
in there to support the restful_authentication plugin etc. They are likely all just the standard stuff. Let me know if we want those too. /S Kenny Ortmann wrote: can you paste the entire users_controller please? On Tue, Feb 2, 2010 at 10:43 AM, Soren Christensen so...@silikone.comwrote: Noted

Re: Override the record?

2010-02-01 Thread Kenny Ortmann
in ActiveScaffold. If AS depends upon my route then it might be useless for what I'm doing. - Brian On Feb 1, 12:24 pm, Kenny Ortmann kenny.ortm...@gmail.com wrote: Well it depends... Active scaffold does some nice things for you out of the box... for instance If you

Re: tweaking the AJAX response on create

2010-01-27 Thread Kenny Ortmann
So you have an accounts page. subscriptions are nested under accounts. When you open an accounts subscriptions and then create a subscription under that account, you want to refresh the subscriptions for that account. is this correct? On Wed, Jan 27, 2010 at 11:41 AM, George ghf...@gmail.com

Re: Pagination Javascript

2010-01-27 Thread Kenny Ortmann
or you could use lowpro, http://github.com/danwrong/low-pro/ On Wed, Jan 27, 2010 at 2:56 PM, AJ ONeal coola...@gmail.com wrote: Any ideas on how to make the javascript run each time the user goes to a new page? jQuery BBQ jQuery Sammy AJ ONeal -- You received this message because you

Re: ActiveScaffold documentation homepage vs. wiki

2010-01-16 Thread kenny . ortmann
Correct he is MIA. Sent from my Verizon Wireless BlackBerry -Original Message- From: Nick Rogers ncrog...@gmail.com Date: Sat, 16 Jan 2010 10:14:57 To: activescaffold@googlegroups.com Subject: Re: ActiveScaffold documentation homepage vs. wiki On Sat, Jan 16, 2010 at 1:47 AM, johan

Re: Noobie error ?

2010-01-09 Thread Kenny Ortmann
For question 1. Would you mind showing your controller code? The error looks like you are set something up incorrectly. When clicking on one of the table headers for resorting I get a ActiveRecord::RecordNotFound in AutosController#show Couldn't find Auto with ID=update_table This error is

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

2010-01-09 Thread Kenny Ortmann
I haven't seen any problems with this but I do not do much browsing using an iPhone. I know some people from my company have looked at websites with active scaffold before and not had issues but this was a while back. on line 123 of lib/active_scaffold/actions/core.rb is this def

Re: View Overrides

2010-01-09 Thread Kenny Ortmann
you would need to copy the file to app/views/active_scaffold_overrides/ or if you want to override the view for a specific controller you can put the file in app/views/controller_name/ ~kenny On Fri, Jan 8, 2010 at 2:50 PM, satynos dharamgollap...@gmail.com wrote: Is there any easier way to

Re: act_as_authenticated.

2010-01-09 Thread Kenny Ortmann
I would try this: def authorized_for_destroy? self[:owner_id] == current_user_id end notice I also removed the return true and if statement, those aren't needed. the method will return true or false depending on what that evaluates to. I'm not sure if this will work but give it a try. On

Re: Site down

2009-12-03 Thread kenny . ortmann
The site has been inactive for a really long time go to http://github.com/activescaffold/active_scaffold --Original Message-- From: lyric To: ActiveScaffold : Ruby on Rails plugin ReplyTo: activescaffold@googlegroups.com Subject: Re: Site down Sent: Dec 3, 2009 11:57 PM things are still

Re: Render HTML inside ActiveScaffold

2009-12-02 Thread kenny . ortmann
Do you mean inside of a form or in a list view? You should be able to do this either way. --Original Message-- From: PaP To: ActiveScaffold : Ruby on Rails plugin ReplyTo: activescaffold@googlegroups.com Subject: Render HTML inside ActiveScaffold Sent: Dec 2, 2009 11:26 AM Hi guys, is

Re: Subform text_field override

2009-12-02 Thread kenny . ortmann
I would reccomend putting debug/print statements inside of your helper method and see what your @record.purchase_item.quantity attribute contains --Original Message-- From: Victor To: ActiveScaffold : Ruby on Rails plugin ReplyTo: activescaffold@googlegroups.com Subject: Re: Subform

Re: redirect on authorization failure

2009-12-02 Thread kenny . ortmann
So you are basically saying if the user has show access then they have update access as well? Are you redirecting upon clicking update of the form or upon clicking the update link? Sent from my Verizon Wireless BlackBerry -Original Message- From: Chris Drappier chris.drapp...@gmail.com

Re: redirect on authorization failure

2009-12-02 Thread kenny . ortmann
I was just curious. So are you using none ajax links? What version of render_component are you using? Sent from my Verizon Wireless BlackBerry -Original Message- From: Chris Drappier chris.drapp...@gmail.com Date: Wed, 2 Dec 2009 12:28:24 To: activescaffold@googlegroups.com Subject: Re:

Re: redirect on authorization failure

2009-12-02 Thread kenny . ortmann
Yes one of the problems is with render component. If you go to the github wiki I believe it suggests using a different one. If it doesn't let me know and I'll find out which version you should use when I get to a computer Sent from my Verizon Wireless BlackBerry -Original Message- From:

Re: redirect on authorization failure

2009-12-02 Thread kenny . ortmann
Also there are ways to have the update and create links not show up if the user isn't authorized. You still need to disallow the actions in the controller, as you already are, to prevent url hacking but you may want to look at the wiki and remove the links as well. Sent from my Verizon Wireless

Re: redirect on authorization failure

2009-12-02 Thread Kenny Ortmann
you want to use this git repository git://github.com/ewildgoose/render_component.git and you want to use the rails-2.3 branch On Wed, Dec 2, 2009 at 1:08 PM, Chris Drappier chris.drapp...@gmail.comwrote: yeah, i started out using DHH's render component, but that didn't work with AS, so I

Re: Active Scaffold website problems?

2009-12-01 Thread Kenny Ortmann
The activescaffold.com website has not been maintained for years. We can't get access to change it :/ ~Kenny On Tue, Dec 1, 2009 at 8:49 PM, EBIHARA, Yuichiro ebih...@preferred.jpwrote: Does this help you? http://wiki.github.com/activescaffold/active_scaffold I don't know what are

Re: Setting up admin in subdomain

2009-10-20 Thread kenny . ortmann
You shouldn't need to change anything to have your admin part work as a subdomain if you want it to be a completly different application. If you want documentation look for the active scaffold repo on github and then go to the wiki section Sent from my Verizon Wireless BlackBerry -Original

Re: removing authorized_for from list view to boost peformance by 8% but keeping security

2009-09-29 Thread kenny . ortmann
How many records are you displaying n one page? Sent from my Verizon Wireless BlackBerry -Original Message- From: alexp simon.jacobs@gmail.com Date: Tue, 29 Sep 2009 19:15:46 To: ActiveScaffold : Ruby on Rails pluginactivescaffold@googlegroups.com Subject: Re: removing

Re: ActionController::RoutingError in Customers#list

2009-08-20 Thread kenny . ortmann
You should. If you removed default routes then you have to Sent from my Verizon Wireless BlackBerry -Original Message- From: CCH c...@karensoft.com.my Date: Thu, 20 Aug 2009 20:19:57 To: ActiveScaffold : Ruby on Rails pluginactivescaffold@googlegroups.com Subject: Re:

Re: Enabling nil values for date fields in edit view

2009-08-17 Thread Kenny Ortmann
I don't believe this functionality exists. I don't use the default date dropdowns. I override my date form column in the the helper to be a regular text input field and allow the user to type the date. If you do this the user can leave the field blank. ~Kenny On Mon, Aug 17, 2009 at 2:12 PM,

Re: Enabling nil values for date fields in edit view

2009-08-17 Thread Kenny Ortmann
is true. On Mon, Aug 17, 2009 at 3:28 PM, Kenny Ortmann kenny.ortm...@gmail.comwrote: I don't believe this functionality exists. I don't use the default date dropdowns. I override my date form column in the the helper to be a regular text input field and allow the user to type the date. If you

Re: Enabling nil values for date fields in edit view

2009-08-17 Thread Kenny Ortmann
That would also work. A better approach would be to try and add this in through the controller. config.columns[:maturity_date].options = {:html_options = {:include_blank = true}} On Mon, Aug 17, 2009 at 2:53 PM, Kerry Foley bonefish.fo...@gmail.comwrote: I override the form column in the

Re: Is the svn/trunk the latest version of ActiveScaffold ?

2009-08-16 Thread kenny . ortmann
You should install git and clone the repository on github Sent from my Verizon Wireless BlackBerry -Original Message- From: CCH c...@karensoft.com.my Date: Sun, 16 Aug 2009 19:55:01 To: ActiveScaffold : Ruby on Rails pluginactivescaffold@googlegroups.com Subject: Is the svn/trunk the

Re: Paperclip polymorphic with AS

2009-08-14 Thread kenny . ortmann
I've used paperclip with AS but not the polymorph plugin Sent from my Verizon Wireless BlackBerry -Original Message- From: G. Sobrinho gabriel.sobri...@gmail.com Date: Fri, 14 Aug 2009 11:07:12 To: activescaffoldactivescaffold@googlegroups.com Subject: Paperclip polymorphic with AS

Re: extending activescaffold classes

2009-07-31 Thread Kenny Ortmann
I do not know the answer to your question, but what are you trying to add? On Fri, Jul 31, 2009 at 9:04 AM, mrbana...@googlemail.com mrbana...@googlemail.com wrote: Hi, I ve got quite a basic question. Let s assume I would like to add a new method to an activescaffold class eg

Re: Limiting the number of rows for an embedded ActiveScaffold

2009-07-29 Thread Kenny Ortmann
What exactly are you trying to do? If you go to an active scaffold controller and in the browser go to the url and put ?limit=1 at the end does it not limit the list view to 1 item? On Mon, Jul 27, 2009 at 10:34 AM, Enrico Bianco enri...@gmail.com wrote: Hi all, Is there a way to limit the

Re: active_scaffold phones home on install - that's a problem

2009-07-24 Thread Kenny Ortmann
I understand that. I meant how are you trying to install active scaffold? unless i'm missing something, if you just pull the codebase down from github it shouldn't run the install.rb file On Thu, Jul 23, 2009 at 5:01 PM, James Moore jamesthepi...@gmail.comwrote: On Jul 23, 2:48 pm,

Re: active_scaffold phones home on install - that's a problem

2009-07-23 Thread kenny . ortmann
Where did you get this install file from? The recomended way to obtain active_scaffold source is from github Sent from my Verizon Wireless BlackBerry -Original Message- From: James Moore jamesthepi...@gmail.com Date: Thu, 23 Jul 2009 14:45:33 To: ActiveScaffold : Ruby on Rails

Re: github timeout when installing on Windows XP

2009-07-22 Thread Kenny Ortmann
what is the error that it gives you when you try to start the server? On Wed, Jul 22, 2009 at 9:07 AM, mike globallyuni...@gmail.com wrote: I made a mistake with the cut and past the install command into my message. There is a blank missing in 'installhttp://', should have been 'install

Re: github timeout when installing on Windows XP

2009-07-22 Thread Kenny Ortmann
' from script/server:3 On Jul 22, 12:37 pm, Kenny Ortmann kenny.ortm...@gmail.com wrote: what is the error that it gives you when you try to start the server? On Wed, Jul 22, 2009 at 9:07 AM, mike globallyuni...@gmail.com wrote: I made a mistake with the cut and past

Re: Overriding a method of AS

2009-07-13 Thread Kenny Ortmann
just override the method in your contoller def update #do whatever you want to do #if you want to go back to the active scaffold fucntionality you can if i_want_to_override? #then override else super end end ~kenny On Mon, Jul 13, 2009 at 9:33 AM, JannaB

Re: Missing description (title attribute) on table header when haven't sort option

2009-07-12 Thread kenny . ortmann
I'll fix this tomorrow if sergio hasn't gotten to it yet. If I don't reply by tuesday saying it's fixed shoot another email to remind me. Sent from my Verizon Wireless BlackBerry -Original Message- From: G. Sobrinho gabriel.sobri...@gmail.com Date: Sun, 12 Jul 2009 18:56:43 To:

Re: Inline Action Link

2009-07-07 Thread Kenny Ortmann
to reference the show and have the ability to control what record is show. Next step is to apply the privacy rules to the displayed data. I assume that this can be done with helper methods. /S Kenny Ortmann wrote: You could make a User Controller and use the show method in the user

Re: Action Link Usage

2009-07-07 Thread Kenny Ortmann
:36 pm, Kenny Ortmann kenny.ortm...@gmail.com wrote: Yeah I updated the version for rails-2.1 a second time so if you update your codebase again it should work the line should read authorized = associated ? associated.authorized_for?(:action = link.crud_type) : record.authorized_for

Re: security layer restricted to only crud actions

2009-07-07 Thread Kenny Ortmann
The way ActiveScaffold works I don't see any reason for it to check any other type of action. All of the things you just listed can be classified as a crud type, activate - update, suspend - update, pdf - read, review - read, comment - create, diggit. - probably create You can set the crud type

Re: security layer restricted to only crud actions

2009-07-07 Thread Kenny Ortmann
in the controller. That way you also solve a backward compatibility issue. On Tue, Jul 7, 2009 at 4:26 PM, ser...@entrecables.com wrote: On Tue, 7 Jul 2009 14:52:52 -0500, Kenny Ortmann kenny.ortm...@gmail.com wrote: The way ActiveScaffold works I don't see any reason for it to check any other type

Re: rendering file under /public problem

2009-07-06 Thread Kenny Ortmann
it seems that your @channel.urlsuffixtofind is evaluating to nothing so it is looking for /index.html in the active scaffold views directory On Mon, Jul 6, 2009 at 10:53 AM, JannaB mistressja...@hotmail.com wrote: I have a file, /public/test/ggriptest/index.html under my app. I want to render

Re: Action Link Usage

2009-07-06 Thread Kenny Ortmann
Would you paste your controllers code as well please? On Mon, Jul 6, 2009 at 11:12 AM, redbros david.chin.c...@gmail.com wrote: Thanks Sergio for jumping in. I did use set_link like you indicated but got error while rendering the page. Any ideas? Showing

Re: Action Link Usage

2009-07-06 Thread Kenny Ortmann
:15 am, Kenny Ortmann kenny.ortm...@gmail.com wrote: Would you paste your controllers code as well please? On Mon, Jul 6, 2009 at 11:12 AM, redbros david.chin.c...@gmail.com wrote: Thanks Sergio for jumping in. I did use set_link like you indicated but got error while

Re: rendering file under /public problem

2009-07-06 Thread Kenny Ortmann
If you use render :file, the path that it takes is the absolute path from the file system so it would be expecting c:\\...file or /pathl...file try just using render :template = a On Mon, Jul 6, 2009 at 11:36 AM, Kenny Ortmann kenny.ortm...@gmail.comwrote: Ok, i thought maybe

Re: Action Link Usage

2009-07-06 Thread Kenny Ortmann
appreciate it! On Jul 6, 12:56 pm, Kenny Ortmann kenny.ortm...@gmail.com wrote: try config.columns[:name].clear_link config.columns[:name].set_link 'show', :controller = store On Mon, Jul 6, 2009 at 12:10 PM, redbros david.chin.c...@gmail.com wrote: :( Still the same error. On Jul

Re: Action Link Usage

2009-07-06 Thread Kenny Ortmann
On Jul 6, 2:34 pm, Kenny Ortmann kenny.ortm...@gmail.com wrote: Can you update your version of active scaffold, I just pused a change to the version for rails-2.1 ~kenny On Mon, Jul 6, 2009 at 1:09 PM, redbros david.chin.c...@gmail.com wrote: Still getting the error

Re: Pretty urls when showing a record.

2009-06-30 Thread kenny . ortmann
You can just override the method you need to in the controller. If you alias a name to go to the show action just override the show action. Sent from my Verizon Wireless BlackBerry -Original Message- From: atmorell atmor...@gmail.com Date: Tue, 30 Jun 2009 07:25:08 To: ActiveScaffold :

Re: Compatibility with ACL9 authorization system?

2009-06-25 Thread kenny . ortmann
If the interfaces controller is also related to roles or users you will have to exclude them in that controller as well Sent from my Verizon Wireless BlackBerry -Original Message- From: Kerry bonefish.fo...@gmail.com Date: Thu, 25 Jun 2009 00:36:40 To: ActiveScaffold : Ruby on Rails

Re: Order of records with default_scope

2009-06-25 Thread Kenny Ortmann
I dont think that it should remove it. Active Scaffold is meant to do things for you by default. That is why you can override almost everything that it does for you. If you don't want it to order them alphabetically then override it ~Kenny On Thu, Jun 25, 2009 at 12:28 PM, G. Sobrinho

Re: Live List View

2009-06-24 Thread kenny . ortmann
I don't know about putting it into active scaffold. I don't think it would be hard to write, but I'm on vacation away from a computer until july 6 I think it would be a cool plugin and should be separate. ~kenny Sent from my Verizon Wireless BlackBerry -Original Message- From: JannaB

Re: where does update_record_from_params set null on id

2009-06-24 Thread kenny . ortmann
If the child record is deleted by the user then the association is gone because the child record no longer exists. Can you explain what you are trying to do a little more? Sent from my Verizon Wireless BlackBerry -Original Message- From: C F Tong thetony...@gmail.com Date: Wed, 24 Jun

Re: Compatibility with ACL9 authorization system?

2009-06-24 Thread kenny . ortmann
You need to exclude the roles column and users column from the controller you are working with. AS tries to create scaffolds for every model that is related to the model you are working with. It looks for controllers for these models and then allows you to create relationships as you are

Re: Ruby on Rails active scaffolding

2009-06-24 Thread kenny . ortmann
This isn't something that active scaffold does for you. If you want someone to do it for you I'm sure someone would be willing to be paid for it. Sent from my Verizon Wireless BlackBerry -Original Message- From: shiju pc shij...@gmail.com Date: Wed, 24 Jun 2009 10:14:06 To:

Re: Order of records with default_scope

2009-06-24 Thread kenny . ortmann
I belive active scaffold tries to order by I'd by default so it is adding it. I would use the config sort that active scaffold provides for you, look at the list config wiki page for examples Sent from my Verizon Wireless BlackBerry -Original Message- From: G. Sobrinho

Re: Live List View

2009-06-23 Thread kenny . ortmann
Not currently. I'm thinking this through my head and it seems like it could be hacked together very simply/quickly, but I'm not sure how efficient it would be. So the way I would do it, 1. The model/models need to have a last updated at column. 2. Create a controller that returns the most

Re: save search conditions in session

2009-06-03 Thread kenny . ortmann
Try session[:blah] = value.to_date --Original Message-- From: rvhi Sender: activescaffold@googlegroups.com To: ActiveScaffold : Ruby on Rails plugin ReplyTo: activescaffold@googlegroups.com Subject: save search conditions in session Sent: Jun 3, 2009 3:58 AM Hi, I try to save search

Re: Anyone having problems sorting tables?

2009-06-03 Thread kenny . ortmann
Yes it makes it not restful. Sent from my Verizon Wireless BlackBerry -Original Message- From: Carl Anderson nexus...@gmail.com Date: Wed, 3 Jun 2009 07:26:46 To: activescaffold@googlegroups.com Subject: Re: Anyone having problems sorting tables? No, I missed that in the wiki. But

Re: Increaing size of textarea produced by active_scaffold_input_for

2009-06-03 Thread Kenny Ortmann
you should be able to do this in your controller config.columns[:column_you_want_bigger].options = {:height = 50} options takes a hash that represents any html options that you want to override for that fields input. On Wed, Jun 3, 2009 at 1:33 PM, harv pharvey.w...@gmail.com wrote: Hi,

Re: save search conditions in session

2009-06-03 Thread kenny . ortmann
Possible, where are you running the statement? Sent from my Verizon Wireless BlackBerry -Original Message- From: rvhi rzh...@gmail.com Date: Wed, 3 Jun 2009 15:09:56 To: ActiveScaffold : Ruby on Rails pluginactivescaffold@googlegroups.com Subject: Re: save search conditions in session

Re: save search conditions in session

2009-06-03 Thread Kenny Ortmann
in your controller def update_table session[:search] = params[:search] # or whatever value you are trying to store super end On Wed, Jun 3, 2009 at 7:02 PM, rvhi rzh...@gmail.com wrote: It is inside condition_for_foo_column() in controller. On Jun 3, 12:11 pm, kenny.ortm...@gmail.com

Re: What occurs on cancel

2009-06-03 Thread Kenny Ortmann
when you click the cancel link it fires a javascript method that is located on line 364 of active_scaffold.js On Wed, Jun 3, 2009 at 3:51 PM, JannaB mistressja...@hotmail.com wrote: When I am editing, and I click Cancel (or X-out of the for edit view) what happens? What gets called? That's

Re: redirect_to after a form override

2009-05-29 Thread Kenny Ortmann
end On May 29, 7:06 pm, Kenny Ortmann kenny.ortm...@gmail.com wrote: currently in your controller you have def create @associate = Associate.new(params[:associate]) @associate.startdate = Date.today if @associate.save flash[:notice] = Registration successful

Re: redirect_to after a form override

2009-05-28 Thread Kenny Ortmann
Can I see your controller and your override? AS does a lot to make the row collapse happen so I need to see what you are doing to tell you where to start. Kenny On Thu, May 28, 2009 at 8:05 AM, JannaB mistressja...@hotmail.com wrote: I have one model (of many in a rails app that invoke AS)

Re: Rendering objects and authorize_foraction

2009-05-28 Thread Kenny Ortmann
I'm assuming you have 2 records on this list view? On Thu, May 28, 2009 at 1:31 PM, Carl nexus...@gmail.com wrote: I figured out a little more about my problem with authorize for action but I'm not sure why this is happening. It seems that 2 calls are made to render each object, one with

Re: Rendering objects and authorize_foraction

2009-05-28 Thread Kenny Ortmann
in this case). On another page I have 4 records from Universe_id 1 and each of those groups shows up twice for each record, but of course they both have univserse_id 1. Carl On Thu, May 28, 2009 at 11:34 AM, Kenny Ortmann kenny.ortm...@gmail.com wrote: I'm assuming you have 2 records on this list

Re: acts_as_audited with ActiveScaffold

2009-05-27 Thread kenny . ortmann
You can exclude these columns everywhere. Look at the wiki for core overrides Sent from my Verizon Wireless BlackBerry -Original Message- From: suranyami david.pa...@suranyami.com Date: Tue, 26 May 2009 23:29:30 To: ActiveScaffold : Ruby on Rails pluginactivescaffold@googlegroups.com

Re: acts_as_audited with ActiveScaffold

2009-05-27 Thread Kenny Ortmann
class ApplicationController ActionController::Base ActiveScaffold.set_defaults do |config| config.columns.exclude :created_at, :updated_at, :audits end end On Wed, May 27, 2009 at 6:48 AM, kenny.ortm...@gmail.com wrote: You can exclude these columns everywhere. Look at the wiki for

Re: render_component slightly updated

2009-05-27 Thread Kenny Ortmann
ed did you ever see this version? http://github.com/ewildgoose/render_component/tree/master He fixed the issues with flash not carrying over On Wed, May 27, 2009 at 5:27 AM, Ed W li...@wildgooses.com wrote: naaano wrote: ok, last commit made it work, thanks Ed!!!

Re: Question about authorized_for_action?

2009-05-27 Thread Kenny Ortmann
in your controller create a private method private def userlimits @userlimits ||= current_user.userlimits.find(:first, :conditions = universe_id =#{self.universe_id}).rights end this will cache your userlimits for the user and you will only make the database call once. or you could go as far

Re: displaying only a subset of the results depending from where we call the nested view

2009-05-27 Thread Kenny Ortmann
Just a heads up, removing render component from nested scaffolds is in the works so once that happens you may need to change the way you are doing this, or better case scenario is that it will just work and pass the params correctly without you having to do anything. On Wed, May 27, 2009 at 9:43

Re: Question about authorized_for_action?

2009-05-27 Thread Kenny Ortmann
with the 4 other models that implement the code. Carl On Wed, May 27, 2009 at 9:16 AM, Kenny Ortmann kenny.ortm...@gmail.com wrote: in your controller create a private method private def userlimits @userlimits ||= current_user.userlimits.find(:first, :conditions = universe_id

Re: Layout Confusion

2009-05-21 Thread Kenny Ortmann
Did you have any questions here or were you just giving an example of what you are doing? On Thu, May 21, 2009 at 9:49 AM, JannaB mistressja...@hotmail.com wrote: I am using AuthLogic and ActiveScaffold together in a Rails App. Essentailly, through AuthLogic (using Railscast 167 tutorial) I

Re: Layout Confusion

2009-05-21 Thread Kenny Ortmann
disregard that message i missed the pictures. On Thu, May 21, 2009 at 10:57 AM, Kenny Ortmann kenny.ortm...@gmail.comwrote: Did you have any questions here or were you just giving an example of what you are doing? On Thu, May 21, 2009 at 9:49 AM, JannaB mistressja...@hotmail.com wrote: I

Re: search broken

2009-05-21 Thread Kenny Ortmann
What version of rails/active scaffold are you using? On Thu, May 21, 2009 at 10:47 AM, Soren so...@silikone.com wrote: Suddenly I get this error: Processing StudentController#show_search (for 192.168.0.216 at 2009-05-21 08:41:23) [GET] Parameters: {eid=92a90c6d5b93d6eac1a8d335c2940dc3,

Re: Layout Confusion

2009-05-21 Thread Kenny Ortmann
then -- for edit and new, for this table only. I shold rephrase my question thus: How can I specify a separate layout for the form view than for the list view? Thanks! Janna On May 21, 12:07 pm, Kenny Ortmann kenny.ortm...@gmail.com wrote: in your controller you are overriding the new, create

Re: rails 2.3 AS render_component and flash madness

2009-05-21 Thread Kenny Ortmann
- If we want to render for the final user view we want to render with a custom template - But sometimes we want to render the same action and get a raw version with the default template This really already happens. if the list action was of format js it responds with layout = false, if it is of

Re: How can i add a custom action?

2009-05-20 Thread Kenny Ortmann
you should use the wiki on github instead of the wiki on the activescaffold site, http://wiki.github.com/activescaffold/active_scaffold On Wed, May 20, 2009 at 10:26 AM, simon manin.i...@gmail.com wrote: I found it already on

Re: Rails 2.3 and form overrides

2009-05-19 Thread Kenny Ortmann
its not :use_state, its :usa_state. This was not working before I just committed a patch that will allow you to use form_ui = :usa_state without using a helper. Active scaffold doesn't support a form_ui type of :date_select. if you look here in the form_ui section you will see all of the

Re: rails 2.3 AS render_component and flash madness

2009-05-19 Thread Kenny Ortmann
Thank you for the second version down there. Our flash message have also been boofed, but we thought it was a problem with rails. Are your embedded scaffolds still working with the second fork? On Tue, May 19, 2009 at 6:27 PM, Tim Uckun timuc...@gmail.com wrote: When I upgraded to rails 2.3 I

Re: RJS Error in Chrome, IE8 Safari - AS rel 2.2, Rails 2.2

2009-05-14 Thread Kenny Ortmann
I got your images. Are you overriding any of the views by any chance? On Thu, May 14, 2009 at 5:29 AM, Sergio Cambra .:: entreCables S.L. ::. ser...@entrecables.com wrote: On Jueves, 14 de Mayo de 2009 03:51:42 Kenny Ortmann escribió: For render component, you need to use http

Re: use_state

2009-05-14 Thread Kenny Ortmann
usa_state not use_state On Thu, May 14, 2009 at 8:18 AM, JannaB mistressja...@hotmail.com wrote: Somewhere in the docs I encountered: In addition to the :checkbox option, ActiveScaffold supports these other options: :calendar, :country, :password, :textarea, and :use_state. I've been

Re: How do I override a foreign-key in the list view?

2009-05-14 Thread Kenny Ortmann
an a-element (of a foreign-key) into a plain string. -b Kenny Ortmann wrote: you don't want to override the foreign-key in your controllers helper do def dept_column(record) # display whatever you want here record.dept.name end On Wed, May 13, 2009 at 6:30 PM

Re: use_state

2009-05-14 Thread Kenny Ortmann
, no? -Janna B. On May 14, 10:30 am, Kenny Ortmann kenny.ortm...@gmail.com wrote: usa_state not use_state On Thu, May 14, 2009 at 8:18 AM, JannaB mistressja...@hotmail.com wrote: Somewhere in the docs I encountered: In addition to the :checkbox option, ActiveScaffold supports

Re: use_state

2009-05-14 Thread Kenny Ortmann
, Kenny Ortmann kenny.ortm...@gmail.com wrote: remove the method from your helper class. when you say config.columns[:state].form_ui = :usa_state, active scaffold will automatically make the column a USA state select box. If you still need to override this then in your helper you would

Re: Multi-Layer Associations in a List View

2009-05-14 Thread Kenny Ortmann
The problem with this is that from a users point of view it may not seem silly to have a link to the parent and grandparent. So from an active scaffold point of view, when you click on the parent link you get a scaffold view for the child-parent relationship. If you click on grandparent you

Re: Triggering an update to a page after AS has completed its operation

2009-05-13 Thread Kenny Ortmann
The rjs files in active scaffold are all very straight forward, if you look at them you should be able to understand that they are doing. They are mainly just in control of updating the page after an action, for instance, the on_create.js.rjs will replace replace the create form with a new one if

Re: config.label ignored

2009-05-13 Thread Kenny Ortmann
Try config.list.label = States On Wed, May 13, 2009 at 2:52 PM, bornboulde...@gmail.com bornboulde...@gmail.com wrote: People, I'm setting up a new site. I bumped into a silly problem with config.label. Here is my controller: class Asa::DevicetypeStatesController

Re: Security configuration

2009-05-13 Thread Kenny Ortmann
http://wiki.github.com/activescaffold/active_scaffold/per-request-configuration in your controller you need to do before_filter :update_table_config def update_table_config if current_user.admin # or whatever active_scaffold_config.actions.add :list else

Re: RJS Error in Chrome, IE8 Safari - AS rel 2.2, Rails 2.2

2009-05-13 Thread Kenny Ortmann
For render component, you need to use http://github.com/lackac/render_component/tree/master do you have any more information about the rjs errors in IE8 and chrome 1.0.54 and Safari? On Wed, May 13, 2009 at 12:38 PM, Soren so...@silikone.com wrote: Hi, Create and delete causes RJS errors in

  1   2   3   >