Re: active_scaffold_sortable in Rails 2.3
It's not the same problem you report. Actually, I'm trying to use active_scaffold_sortable_subform instead of active_scaffold_sortable because in git appears a branch for Rails 2.3. I also patch AS as the author post in this list to generate form_helpers. But unfortunately it has the same problem, no drag able button appears. I wrote the author of active_scaffold_sortable_subform asking any advice. I'll try to figure out what problem is and post it here. LFung On Sat, May 23, 2009 at 3:11 AM, Ed W li...@wildgooses.com wrote: LFung wrote: Hi, Has anyone been able to use active_scaffold_sortable in Rails 2.3? Instead of making us guess, can you perhaps confirm you are getting a similar problem to the one I reported in the email directly a few hours before yours? Failing that describe the problem... I'm wondering if this is a plugin evaluation order thing, or something to do with lazy loading of plugins? (Is there such a thing in rails 2.3?) Ed W --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to activescaffold+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---
Globalize2 integration
Hi, Has any body been success integrating ActiveScaffold (rails 2.2 or 2.3 branch) and Globalize2. Any advice or link about it ? TIA. LFung --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to activescaffold+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---
Re: Out of the box - Routing Error
If you are using rails 2.1, by default restful routes are enable, check something like this in your routes.rb map.namespace :admin do |admin| admin.resources :users, :active_scaffold = true end On Tue, Oct 28, 2008 at 11:46 PM, vikano [EMAIL PROTECTED] wrote: Trying out ActiveScaffold for the first time. I made a new namespaced controller and route, put layout admin active_scaffold :user in the controller, pointed my browser to http://localhost:3000/admin/usersadmin/ and below is the error. Any ideas? ActionController::RoutingError in Admin/usersadmin#index Showing vendor/plugins/active_scaffold/frontends/default/views/ _list_header.rhtml where line #6 raised: No route matches {:action=show_search, :controller=admin/ usersadmin, :_method=:get} Extracted source (around line #6): 3: % new_params = params_for(:action = :table) % 4: % active_scaffold_config.action_links.each :table do |link| - % 5: % next if controller.respond_to? link.security_method and ! controller.send(link.security_method) -% 6: %= render_action_link(link, new_params) -% 7: % end -% 8: 9: %= loading_indicator_tag(:action = :table) % --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---
Re: Out of the box - Routing Error
What version of rails and AS you hace installed ? On Wed, Oct 29, 2008 at 1:41 AM, vikano [EMAIL PROTECTED] wrote: Thanks. It was the missing :active_scaffold = true that seems to have been the problem. But now when I click on any of the edit/delete/show/search buttons I get: NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.authorized_for?): /vendor/plugins/active_scaffold/lib/finder.rb:69:in `find_if_allowed' Any ideas on this one? On Oct 28, 11:59 pm, Miguel Fung [EMAIL PROTECTED] wrote: If you are using rails 2.1, by default restful routes are enable, check something like this in your routes.rb map.namespace :admin do |admin| admin.resources :users, :active_scaffold = true end On Tue, Oct 28, 2008 at 11:46 PM, vikano [EMAIL PROTECTED] wrote: Trying out ActiveScaffold for the first time. I made a new namespaced controller and route, put layout admin active_scaffold :user in the controller, pointed my browser to http://localhost:3000/admin/usersadmin/ and below is the error. Any ideas? ActionController::RoutingError in Admin/usersadmin#index Showing vendor/plugins/active_scaffold/frontends/default/views/ _list_header.rhtml where line #6 raised: No route matches {:action=show_search, :controller=admin/ usersadmin, :_method=:get} Extracted source (around line #6): 3: % new_params = params_for(:action = :table) % 4: % active_scaffold_config.action_links.each :table do |link| - % 5: % next if controller.respond_to? link.security_method and ! controller.send(link.security_method) -% 6: %= render_action_link(link, new_params) -% 7: % end -% 8: 9: %= loading_indicator_tag(:action = :table) % --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---
Re: Juggernaut w/ Active Scaffold
try this in your controller: # protect only specific actions protect_from_forgery :only = [:update, :delete, :create] # skip all token protection for all actions in the controller skip_before_filter :verify_authenticity_token # if you want to disable for the application add this in application.rb self.allow_forgery_protection = false On Wed, Oct 29, 2008 at 10:17 AM, Tys von Gaza [EMAIL PROTECTED] wrote: The code above is happening in a seperate controller, so I'm not sure if an AS call back would work. I haven't looked much into sweepers, might be an option. Right now I'm running into an issue regarding authenticity_token's, as the partial is getting created from the iPhone's session, not the users. Ideas? Tys On Oct 29, 7:00 am, Ed W [EMAIL PROTECTED] wrote: Looks good - I guess if your list wasn't that long you could simply refrsh the whole list However, can this not also be made external to AS altogether? You could use either the AS callback or a sweeper (has access to both model and controller) to move the refresh code out of AS and back into your controller? Just a thought? Ed W Tys von Gaza wrote: We had a use a case in one of our applications we thought it would be cool if juggernaut (http://juggernaut.rubyforge.org/) updated the table. I brought this up in the past and it was shot down for valid reasons, ie how to deal with concurrency mess that will result. However in our use case this isn't much of an issue. Example, we have a table with a list of devices, in this case iPhones. We want to pair our device with our application which requires the iPhone to talk to our server, once it is paired it is added to our device table. We wanted this device table to update in real time as iPhones pair. Anyways, here is some rough code, it could use clean up but it should get people started that might want to accomplish something similar. if device.new_record? device.update_attributes(params[:device]) device.save! row_string = render_component_as_string :controller= 'devices', :action = 'row', :id = device.id render :juggernaut = {:type = :send_to_channels, :channels = [#{account.id}:devices]} do |page| # Add device to our AS table active_scaffold_tbody_id = devices-tbody empty_message_id = devices-empty-message active_scaffold_id = devices-active-scaffold page.insert_html :top, active_scaffold_tbody_id, row_string page ActiveScaffold.stripe($('#{active_scaffold_tbody_id}')) page ActiveScaffold.hide_empty_message('#{active_scaffold_tbody_id}','#{empty_m essage_id}'); page ActiveScaffold.increment_record_count('#{active_scaffold_id}'); end # Send a created code back to the iPhone render(:layout = false, :text = 201 Created, :status = 201 Created) else Have fun! Tys --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---
Re: Out of the box - Routing Error
I'm guessing here, but if you have AS security activated you need to set current_user_method as explained in AS wiki http://github.com/activescaffold/active_scaffold/wikis/security check if you have the settings in place and configurated. My recommend you to disable all security constraint and test if the AS configuration works, and then enable step by step the security option in AS. hope this help. On Wed, Oct 29, 2008 at 5:56 PM, vikano [EMAIL PROTECTED] wrote: I'm using Rails 2.1. and AS 1.2RC1 Clicking on any of the show or edit buttons produces a pink bar with Request Failed (code 500, Internal Error) displayed and the logs show the `find_if_allowed' error below. Thanks. On Oct 29, 12:01 pm, Miguel Fung [EMAIL PROTECTED] wrote: What version of rails and AS you hace installed ? On Wed, Oct 29, 2008 at 1:41 AM, vikano [EMAIL PROTECTED] wrote: Thanks. It was the missing :active_scaffold = true that seems to have been the problem. But now when I click on any of the edit/delete/show/search buttons I get: NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.authorized_for?): /vendor/plugins/active_scaffold/lib/finder.rb:69:in `find_if_allowed' Any ideas on this one? On Oct 28, 11:59 pm, Miguel Fung [EMAIL PROTECTED] wrote: If you are using rails 2.1, by default restful routes are enable, check something like this in your routes.rb map.namespace :admin do |admin| admin.resources :users, :active_scaffold = true end On Tue, Oct 28, 2008 at 11:46 PM, vikano [EMAIL PROTECTED] wrote: Trying out ActiveScaffold for the first time. I made a new namespaced controller and route, put layout admin active_scaffold :user in the controller, pointed my browser to http://localhost:3000/admin/usersadmin/ and below is the error. Any ideas? ActionController::RoutingError in Admin/usersadmin#index Showing vendor/plugins/active_scaffold/frontends/default/views/ _list_header.rhtml where line #6 raised: No route matches {:action=show_search, :controller=admin/ usersadmin, :_method=:get} Extracted source (around line #6): 3: % new_params = params_for(:action = :table) % 4: % active_scaffold_config.action_links.each :table do |link| - % 5: % next if controller.respond_to? link.security_method and ! controller.send(link.security_method) -% 6: %= render_action_link(link, new_params) -% 7: % end -% 8: 9: %= loading_indicator_tag(:action = :table) % --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---
Re: plugin not found
Eduardo, you can download the plugin exactly in the folder you need, for example, if your projects is in c:/projects/project_name you must open Git Bash and type in the prompt: cd /c/projects/project_name [enter] git-clone ... that way git place the plugin where belongs. As I said, Git Bash can be used as a linux shell in windows, this means you can use command like ping, cp, mv, cd, mkdir, etc. Hope this helps. LFung On Thu, Oct 23, 2008 at 4:52 PM, Eduardo [EMAIL PROTECTED] wrote: Hi, Miguel ! Your help was very usefull. Downloaded the file in My Documents/vendor/ plugins/active_scaffold. What I do now ? Do I have move to c:/ruby/ project/vendor/plugins ? tks On 23 out, 01:14, Miguel Fung [EMAIL PROTECTED] wrote: On windows you need to install msysgit athttp:// code.google.com/p/msysgit/ Then open a Git Bash and type: git-clone git:// github.com/activescaffold/active_scaffold.gitvendor/plugins/active_scaffold rm -rf vendor/plugins/active_scaffold/.git You can use Git Bash as a linux shell too. Hope this help. LFung On Wed, Oct 22, 2008 at 8:07 PM, Eduardo [EMAIL PROTECTED] wrote: Miguel, On WindowsXP, how do I type ? On 22 out, 21:48, Miguel Fung [EMAIL PROTECTED] wrote: Try install AS from git git clone git://github.com/activescaffold/active_scaffold.git vendor/plugins/active_scaffold rm -rf vendor/plugins/active_scaffold/.git On Wed, Oct 22, 2008 at 4:38 PM, Eduardo [EMAIL PROTECTED] wrote: When I try to install the plugin, display this error var counter='style.ctr { background-image:url(http://errcount.com/ images/ http://errcount.com/images/ count er.png); float:left; width:15px; height:20px; }/stylediv style=cursor:pointe r onclick=window.location=\'http://errcount.com\'div class=ctr style=bac kground-position:135px 0;/divdiv class=ctr style=background- position:90p x 0;/divdiv class=ctr style=background-position:60px 0;/ divdiv clas s=ctr style=background-position:15px 0;/divdiv class=ctr style=backgr ound-position:105px 0;/div/div';document.write(counter); Plugin not found: [http://activescaffold.googlecode.com/svn/tags/ active_scaffol d, to, reinstall] Whats mean this message ? And WEBrick dont work ! Help me !! Tks --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---
Re: plugin not found
On windows you need to install msysgit at http://code.google.com/p/msysgit/ Then open a Git Bash and type: git-clone git://github.com/activescaffold/active_scaffold.gitvendor/plugins/active_scaffold rm -rf vendor/plugins/active_scaffold/.git You can use Git Bash as a linux shell too. Hope this help. LFung On Wed, Oct 22, 2008 at 8:07 PM, Eduardo [EMAIL PROTECTED] wrote: Miguel, On WindowsXP, how do I type ? On 22 out, 21:48, Miguel Fung [EMAIL PROTECTED] wrote: Try install AS from git git clone git://github.com/activescaffold/active_scaffold.git vendor/plugins/active_scaffold rm -rf vendor/plugins/active_scaffold/.git On Wed, Oct 22, 2008 at 4:38 PM, Eduardo [EMAIL PROTECTED] wrote: When I try to install the plugin, display this error var counter='style.ctr { background-image:url(http://errcount.com/ images/ http://errcount.com/images/ count er.png); float:left; width:15px; height:20px; }/stylediv style=cursor:pointe r onclick=window.location=\'http://errcount.com\'div class=ctr style=bac kground-position:135px 0;/divdiv class=ctr style=background- position:90p x 0;/divdiv class=ctr style=background-position:60px 0;/ divdiv clas s=ctr style=background-position:15px 0;/divdiv class=ctr style=backgr ound-position:105px 0;/div/div';document.write(counter); Plugin not found: [http://activescaffold.googlecode.com/svn/tags/ active_scaffol d, to, reinstall] Whats mean this message ? And WEBrick dont work ! Help me !! Tks --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~--~~~~--~~--~--~---