similar to: Controller Modules Messed Me Up

Displaying 20 results from an estimated 200 matches similar to: "Controller Modules Messed Me Up"

2006 Feb 01
3
Testing components
I''m using template components to modularize an application I''m working on and am really happy with the way it''s going. Unfortunately, all my attempts at writing functional tests for them fail. Trying to duplicate my normal controller tests I have: require File.dirname(__FILE__) + ''/../test_helper'' require File.dirname(__FILE__) +
2006 Jan 08
9
URL/Site structure
Greetings, I''m fairly noob with rails and making my first DB driven site with it. I''m using the scaffold generator to develop the admin side of my site (admin_controller) I have three sections that I want to have the administrator edit, and I want to call these from the admin controller that has a layout with navigation to these three sections. When using the scaffold
2006 Jan 31
3
Lost in routing
I''m trying to create a modules based system where my controllers are all under modules. So the structure looks something like: app/ controllers/ message/ news_controller.rb email_controller.rb library books_controller.rb pictures_controller.rb home_page_controller.rb Each of those controller has
2006 May 07
0
Search question
Hello, I have an apartments table with these fields id, rooms, floor, price, date_added How do I make a search after these fields. I mean I have the form done, but I don''t know how to make the search. It can be none, one, or more of these fields. Anyone has an example? thanks -- Posted via http://www.ruby-forum.com/.
2007 Jul 19
7
NoMethodError in partial driving me mad
Hello, i simplified have a news model, a news category model and a news controller. my _news.rhtml partial renders a single news entry. in my controller there are the actions show and show_category. if the "show" action is called, a single news item is rendered through my partial with no errors. if the "show_category" action is called, i get a NoMethodError while displaying
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
All, I have ordered AWDWR and am anxiously awaiting its arrival. In the meantime I still am playing with ROR using radrails. I have a few questions ... I create a table named customers with the following details: Field Type Null Key Default Extra id int(11) NO PRI auto_increment customer_name varchar(50) NO inbound_retention int(11) NO outbound_retention int(11) NO unix_admin_email
2006 Apr 13
0
Globalize not with Rails 1.1.2
Does anybody have the latest Globalize (r184) working with Rails 1.1.2? I can''t seem to get a very simple example to work: ----- ruby test/unit/news_item_test.rb Loaded suite test/unit/news_item_test Started F. Finished in 0.10109 seconds. 1) Failure: test_add_content_translations(NewsItemTest) [test/unit/news_item_test.rb:49]: <"US Title"> expected but was
2005 Oct 12
2
Vanished Files issue/enhancement
Hi Rsync/Samba team, First of all, cudos on rsync 2.6.6! It is running exceptionally well. I'm using a script executed by cron to keep warm-backup servers in sync with the primary server. The execution is set to run every 5 minutes. Like any good programmer, this process is *very* paranoid and uses 'wall' to notify the users if any error occurs during the transmissions. This is
2006 Aug 16
1
Creating a comments system for multiple types of content
Hi all My site has news entries, it has a party calendar and it has a blog. Now I''d like to create a commenting system that in fact is quite simple, but I wanna use it for all these 3 types of content. My question: how can I do that? I maybe could add an association to all three types in the comment model: class Comment < ActiveRecord::Base belongs_to :news_item belongs_to
2011 Feb 09
1
Not separating words when parsing HTML in Omega
We noticed, when indexing a Word 2007 document, that two words in adjacent paragraphs got melded together in the Xapian database. For example: To find the document containing these two paragraphs... ...you would search for "containingthese". I fixed it locally by adding a "dump.append(" ");" just before the return in process_text() in myhtmlparse.cc. Thought
2006 Aug 16
4
Overwrite form helper methods and call old ones in new ones?
Hi all All my forms should look the same, so I think always putting the right div etc. tags around them is a violation of the DRY principle. Until now my forms look like that: <div class="text_field"> <label for="news_item_subject">Subject:</label> <%= text_field "news_item", "subject" %> </div> Now I want the default
2006 Aug 17
2
What helper makes "News Item" out of "news_item"?
Hi all Look at the title, I guess you know what I mean... What helper makes the attribute names of tables human readable? news_item >> News Item name >> Name etc. Thanks for info :-) Joshua -- Posted via http://www.ruby-forum.com/.
2006 Dec 10
5
model-controller-paradigm: What about admin controllers?
Hi all We all know the model-controller-paradigm: I have a model "News" which has a corresponding CRUD-controller "NewsController". But now I''m quite unsure about the following... Guess we have normal visitors that visit our site www.??.com/news and we have administrators that create and modify news items. The admin should see an "Edit" link and a
2006 Dec 24
8
HABTM Reading Rows From Two Tables
I''m a newbie and loving rails but I''m stuck. All I want to do is to be able to show in my "list.rhtml" view the information between two tables who both have a HABTM relationship. So this is what I have as follows. -------------------------- TABLES -------------------------- # Projects create_table "projects", :force => true do |t| t.column
2006 Jun 16
4
Prototype $$() on arbitary DOM element ?
I am bit confused with this function. Should I be able to pass in a DOM element e.g. someAjaxRequest.responseXML and interrogate it ? Seems not but perhaps I am missing something... TIA Matt
2006 Aug 17
1
Disable rendering of layout using a GET parameter?
Hi all Is there some sort of a built-in possiblity to disable the rendering of the layout using a GET parameter? Something like :url_for :controller => :news, :action => :show, :id => news_item, :layout => false This should construct something like that: /news/show/123&layout=false And automatically the layout wouldn''t be rendered. Is this already built-in, or
2006 Dec 20
4
undefined method `fullname' for #<User:0x357e380>, BUT works on first view?
Hi all, Please excuse the long post, but I wanted to make sure you have all the information.... I have a NewsModel that looks like this: class News < ActiveRecord::Base belongs_to :user validates_associated :user validates_length_of :title, :description, :minimum => 5, :allow_nil => false acts_as_commentable acts_as_taggable def self.find_recent News.find(:all,
2015 Sep 02
0
latest yum update messed up chrome
-------- Original message -------- Ah, yes.? I saw that when running.? But I think I got a message like that each time I ran chrome?? Thanks, wes <snip> Usually, selinux tells what you need to do in order to stop receiving its error messages about a particular problem. Did you peruse the full message, and not just the 'headline'? Sent from my Samsung Galaxy S5
2006 May 08
2
Noob Question - Variable Scope
I feel awful asking such a basic question, but here it goes.... I have a controller, "NewsController". The user enters and the "list" action is called and I populate an instance variable "@news" which contains all the elements I''d like to display using a form. The user then changes something and the "update" action is called. Is
2006 May 17
3
WebServices: execution expired
1 hour spent and I can''t got explanation why I have "execution expired" when I trying to test this web service: Pointed to: http://localhost:3000/news/list class NewsService < ActionWebService::Base web_service_api NewsApi def list [NewsTopic.new, NewsTopic.new] end end class NewsController < ApplicationController wsdl_service_name ''news''