similar to: Help... Ajax scaffold problems

Displaying 20 results from an estimated 900 matches similar to: "Help... Ajax scaffold problems"

2006 May 13
8
Which Linux flavor for a Rails server?
Hi folks, I''m a linux noob, and I''m trying to pick a distro for my rails server. I don''t want to start a flame-war about linux distros! I''m interested in the best distribution for these criteria: 1 - Simplicity of getting ruby and rails set-up (gem updates) 2 - Stability (it is a server, after all) 3 - Support resources (community, and as a fall-back, paid
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
Before I dig in any further (since I have no idea where to go from here...) Has anyone been succcessful with 2.3.2, AS, and nested scaffolds? I have the latest of AS and the render_component plugin via % script/plugin install --force git://github.com/lackac/render_component.git -r rails-edge I have an AS user_controller: active_scaffold :user do |config| ...
2013 Mar 22
3
Broken 2.x download links
Greetings, I was trying to update the Lustre Wikipedia page today, and while checking the latest release version, I found that the 2.x download links from these pages do not work: http://wiki.lustre.org/index.php/Download:Download http://lists.lustre.org/pipermail/lustre-announce/2010-August/000250.html http://downloads.lustre.org/public/lustre/ http://wiki.lustre.org/index.php/Main_Page I
2006 Mar 08
2
inheritance problem with controllers
i have a controller like this: class SpoilageController < DataEntryController before_filter { check_access_key(''_SP'') } ... and in the parent class is this: class DataEntryController < ApplicationController def check_access_key(key) if !@session[:user].admin && !@session[:user].data_entry_access.to_s.upcase.include?(key) render
2007 Nov 09
2
Problem with stemming and AAF
I''m sure I''m missing something completely obvious here, so I hope someone can point me in the right direction! I''ve implemented a basic search with AAF, which works as expected; I''m running a ferret drb server, and using will_paginate to page results. The code in my search_controller.rb: search_text = params[:query] || " " @products =
2006 Jun 02
0
Trying to use Ajax scaffold throws up odd behaviour
|Interesting... On a new project with a fresh database just created, I downloaded the smooth-loking Ajax Scaffold generator and tried it out on a ''pages'' table: C:\radrails\project>ruby script\generate ajax_scaffold Page PageAdmin (I''m using Windows.) After it calmed down I tried to access my shiny new admin page, but I got this:| ----- NameError in
2006 Apr 29
3
Noob question... confused
If I have several controller actions which have this same line of code (or more), how can I DRY up the line without running into complaints about redirecting or rendering only once? If I put the line in another method in my controller, won''t it think I''m redirecting? I want to dry up lines like this: @listing = Listing.find(params[:id]) def customerview @listing =
2006 May 31
5
Help with sorting arrays with objects in it
I have to build an array through both activerecord and also through a ferret index. I was hoping to find a way of sorting the array as i combine the two so def advanced_search(search_text, store, format, sortby) # find items in ferret index items = Item.find_by_contents(search_text) # and now find all the items from a certain store or category items_from_sql = Item.find_by_sql("SELECT *
2006 May 08
2
Documentation for rails
I''m trying to convince a co-founder of the startup I''m working on that rails is the new black, or possibly the next sliced bread. Does rails ship with doc, or the API? I can''t even figure out how to download it from api.rubyonrails.com, or if that''s possible. When I look in C:\ruby\lib\ruby\gems\1.8\gems\rails-1.1.2\doc I see nothing of use. I have to admit
2006 Jan 05
0
Subdomains - redirect to different actions?
Hey, I''m trying to figure out what the most elegant way to do this - I''ve only got a small amount of different subdomains corresponding to categories - and I''ve been using fragment caching. In particular, I was wondering what the best way to call these actions is - I''m thinking redirect and render_component aren''t really very nice
2006 Jan 24
1
render_component and private access...
I was wondering if rails had any means of restricting access to an action in a controller (like they can''t type in url.com/cont/action, that would throw an error). The thing is I would like to be able to access this method/action through a call to render_component, so therefore, I don''t think private methods will work. So basically I am looking for something that cannot be
2006 Feb 08
1
render_component vs. render_component_as_string?
I''m calling render_component in a helper. render_component :controller => target_controller, :action => "show", :id => target_id This works fine, except that passing the id in :params didn''t work and I had to pass in an explicit :id parameter to get the target controller to override the id - is that documented anywhere? That''s not my question. My
2011 Feb 28
1
Problem with render_component and rails 3
I have a application that it use view/layout/application.rhtml, in this file I have: <%= render_component :controller => ''car'', :action =>''index''%> But there is one problem, it display this problem: undefined method `render_component'' for #<#<Class:0xb67e6e48>:0xb67e5f34> How can I resolve this problem? -- You received this
2006 May 26
1
flash.keep not working with render_component
Using Rails 1.1.2 and ruby 1.8.4 I''m having a weird issue with the flash when using render_component for an action inside different controller than the one from which you render. I''m passing an object via flash across a couple of actions (new and create) behind the scenes using flash.keep(:object). It works fine if the component I''m rendering is in the same
2006 May 07
0
caches_action and render_component
I''ve made some test: ------------------ CODE ------------------ class FooController < ActionController::Base caches_action :foo def foo render_text ''Hello, foo<br />'' end end class BarController < ActionController::Base def bar render :inline => <<-EOS Hello, bar <br /> <%= render_component(:controller =>
2006 Mar 14
0
how to render_component in global layout
Hello, i have one layout file for all controllers. I would like to have news list on each page. So, i put <%= render_component :controller => "news", :action => "list" %> , to my layout file. But this doesn''t work at all. I get error "Application could not be started.. ". If I put render_component to some view file say
2011 Dec 12
0
<%= render_component %> Tag cloud issue for rails version 2.3.11
hi all, in my application there is tag''s cloud in old code which is load using following code <%= render_component :controller => "controller_name", :action => "tag_cloud_homepage"%> now i upgrade the ruby,gem and rails version to Ruby :1.8.7 Rails :2.3.11 gem :1.6.2 and i am using Windows XP as O.S my question, now in Rails 2.3.11 "<%=
2006 Jul 09
3
acts_as_ferret.. what does it actually do?
Okay in this plea for help I''m going to repeat some of what i posted before but with a larger amount of background info in the hope that i can get a decent grip on ferret before it wriggles away.. Firstly, what does installing the acts_as_ferret plugin actually do? I install it and add it to my model and then the index is automatically generated and a few methods are added to it and
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys, This is the final list of the new maintainers of each plugin. We need two more things to do: First please the owners of the repos add the rest of the maintainers. Second I will add a note on each rails/plugin mentioning this repos updates. So from now on, if someone else is interested in helping/contributing please send a message to the appropriate repo owner. verification
2009 Sep 01
0
script/plugin install vs git submodule add
I''ve found several web pages that describe how to use git submodules to install plugins, but it seems that those pages are missing something (or more likely, I am) . In a nutshell, they advise replacing $ script/plugin install git://path_to_spiffy_plugin with $ git submodule add git://path_to_spiffy_plugin vendor/plugins/spiffy_plugin It seems to me that these are not exactly