similar to: Seperation of application specific view/controller stuff

Displaying 20 results from an estimated 4000 matches similar to: "Seperation of application specific view/controller stuff"

2006 Jun 16
0
FW: Ajax used for the Yamanner virus
Just in case you didn''t hear about this. ---------- Forwarded message ---------- From: Babu, Shaurya <Shaurya.Babu@qwest.com> Date: Jun 16, 2006 8:53 AM Subject: FW: Ajax used for the Yamanner virus To: Bakki Kudva <bakki.kudva@gmail.com> FYI _____________________________________________ Hi Guys, A first! for the pitfalls of Ajax, if used indiscriminately:
2006 Apr 23
4
Ruby, Rails & Linux - Which distro
Did I sound like our President? :) <spin> I didn''t explain myself well. I am not thinking of buying the identically equipped PC laptop either at the same price. If I had a $2500-$3000 budget (laptop, Applecare + case etc) I might consider the Mac, but then in the PC laptop universe there are more options of going with the slower processors (T2300 or T2400) for about $1,000 less
2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
My main layout includes separate content_for/yield sections for my header, sidebar, footer, and content. However, when running a view spec, the `rendered` variable seems to only contain a string of just the primary content and ignores the header/footer/sidebar as well as the rest of my layout file (the "render" call just returns my primary content wrapped in generic <html> and
2006 Feb 19
2
instance variables in components not read by component view?
Hi, I''m trying to write a sidebar menu with dynamic menus, and to do so I would like to define a list of menus to display within my sidebar component controller code and pass that list to the component display view, like so: # menu_controller.rb class Sidebar::MenuController < ActionController::Base uses_component_template_root @menus = %w{admin user help} def display
2006 Jan 05
1
Action fails silently - breakpoint doesn''t hit
I have a simple user registration controller with scaffold code. The only change I made to the view is to add a second password field for confirmation. I do have a db table called users with all the fields except ofcourse the extra password field. The field has a different name so it does not get into the user hash. The ''user.new'' action works fine and displays the form. The
2006 May 04
1
Re: How do I identify the initiating View from within aHelper?
Lindsay, Wouldn''t you want to use a component for this? I know components seem to be out of favor, but they seem like a perfect fit for this very thing. You could then go like: <%= render_component :controller => ''sidebar'', :action => ''home_menu'' %> The :action parameter could even be more dynamic based on your own needs. Maybe someone
2006 Jun 05
0
asheville.rb
I am looking to start an Asheville.rb group for Rubyists and Railers in the Asheville, NC area. Any one interested, please contact me on this thread or off list. Thanks, bakki kudva
2006 Feb 08
0
subversion AND gem rails howto?
I have been using rails on Debian Sarge since May of last year. I initially gem installed rails as root and since then I have been gem updating the installation. I have had no trouble with the installation or development. Now feel that I''d like to use svn to get edgerails to be able to use nifty features such as RJS. Some of the threads on the subject talk about svn:externals in the
2006 Jan 06
0
scaffold code fails functional test?
I have the following scaffold generated code which does not run. It does not even hit the breakpoint. def create breakpoint() @student = Student.new(params[:student]) if @student.save flash[:notice] = ''Student was successfully created.'' redirect_to :action => ''list'' else render :action => ''new'' end
2006 Jan 10
0
Changing scaffold''s text_field to a password_field causes white screen of death in mozilla?
I had posted earlier about ''silent failure of a controller'', what seemed to be an intractable problem where I was getting failure of a particular action in a controller while others worked. What was irritating was that there were no useful messages. Nothing to the browser, nothing in logs, and even the breakpoints wouldn''t hit. Finally by a process of elemination I found
2006 Jan 10
7
Can only render or redirect once per action - why?
I ran into this error message a quite a few times since my app requires branching to different pages from the same action... say using a switch statement. Ofcourse I found that you can use multiple redirects or renders if you do render :action => ''new'' and return false I hate to code something I don''t understand fully. Any explanation of this will be greatly
2006 May 04
1
How do I identify the initiating View from within a Helper?
I would like to call a helper method from my View to construct a sidebar menu. The menu is contextual, so ideally I would like to do something like this: View ---- <%= sidebar_menu %> Helper ------ def sidebar_menu case _calling_view_ when ''_view_identifier_'' ... build menu... end end where ''_calling_view_'' is the key that points to the
2005 Dec 09
7
UserEngine - rake bootstrap aborted
Hi there, I''ve just installed login_engine and user_engine from the repositories, followed the setup procedures as documented in: vendor/plugins/user_engine/README But I''m getting the following failure: vince@vaio:~/Projects/Booking$ rake bootstrap (in /home/vince/Projects/Booking) rake aborted! undefined method `edit'' for class `UserController''
2006 Feb 01
2
Uninitialized constant ApplicationController?
Hello list, I''m trying to start my Rails server after doing a long complex switch from Postgres to MySQL, and I''m getting the following error: => Booting WEBrick... /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'': uninitialized constant ApplicationController (NameError) from
2009 Jan 03
2
Some questions from a new webgen user
Hi everyone. Sorry if it is not the place to post questions about webgen. I use webgen5, i know it is not the stable version but i couldn''t understand how webgen4 worked, it''s easier with webgen5, and i won''t have to change my pages when it becomes mainstream ;) I try to build my homepage using webgen, and there are some things i don''t know how to do (i am sure
2006 Mar 28
1
Simple Sidebar Solutions: How does yours work?
I''m working on a simple photo gallery app for personal use and I want to generalize the sidebar such that in any page (controller or view, I''m not sure which) I can dynamically add either 1. links to a given sidebar 2. or an entire sidebar. I know that typo does this, and I''ve looked the code. I think it''s too complex a solution for my simple site.
2006 Feb 06
0
Problem with login form in sidebar
I have a basic login form rendered as a component in the sidebar of my main layout view. Whether or not the login succeeds, the controller redirects to the main index to refresh the sidebar. On success, I set the session[:user_id] to @user.id as usual. The problem is that ''index'' gets rendered in the sidebar. However, when I comment out "session[:user_id] =
2007 Jun 21
1
render :partial => :url - is it possible?
Hi, this is my first post to the list. I''m still learning the rails framework, having done most of my previous web development in PHP. I''ve done a bit of googling for the answer to this question, but maybe I''m just lacking the right word to search for. Several parts of my site, such as sidebar components, are self-contained, modularized and re-used in several parts
2005 Dec 02
8
UserEngine: stack level too deep
Hi, I''m trying to get the UserEngine running. I have installed the LoginEngine, added the essential lines to environment.rb / application.rb and application_helper.rb. Worked fine. Then I did the same with the UserEngine and when trying to set up the db: rake engine_migrate ENGINE=user I get: Migrating engine ''user_engine'' rake aborted! stack level too deep But...
2006 Oct 16
0
user engine session id re-generating on post
I get a redirect from user_engine when using curl -i -X POST -d "<xml_data></xml_data>" http://<webpage>?_session_id=ABC If I use curl http://<webpage>?_session_id=ABC the GET works fine.If it was a routing issue, I would expect the GET not to work.I also removed the -i, but no difference. I''m using if request.post? --- end if request.get? --- end