Displaying 11 results from an estimated 11 matches for "content_control".
Did you mean:
context_control
2007 Apr 09
2
Ferret Demo Problem
...OOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
D:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1235:in
`method_missing''
#{RAILS_ROOT}/app/models/content_base.rb:18
#{RAILS_ROOT}/app/models/content.rb:1
#{RAILS_ROOT}/app/controllers/content_controller.rb:8:in `list''
#{RAILS_ROOT}/app/controllers/content_controller.rb:3:in `index''
-e:4
My configuration:
Rails 1.2.3
ruby 1.8.4 (2006-04-14) [i386-mswin32]
can anyone do me a favour to solve the problem? Thanks a lot.
--
Posted via http://www.ruby-forum.com/.
2006 Oct 17
1
nil object in live search
Hi,I am trying to implement a small live search thing in typo. the view
that I interative with is view/admin/content/_form.rhtml I created a
search field when creating an article and use observe_field to observe
this search field and tells the content_controller to search in database
for the appropriate match.
But when I tried to type a letter in the search field, I''ve got the
following error.
NoMethodError in Admin/content#search
Showing app/views/admin/content/search.rhtml where line #1 raised:
You have a nil object when you didn'&...
2006 Oct 07
3
blog_id magic with typo
Hi All,
I am modifying typo so as, I can host multiple blogs on the same typo.
And its almost done, except that...i am stuck at one place.
When a user posts a new article, depending upon current blog_id, I
would like to set the blog_id attribute of @article object.
So..in the admin/content_controller.rb:
We have:
def new_or_edit
if request.post?
set_article_author
save_attachments
logger.info("**** and blog id in article is #{@article.blog_id}")
if @article.save
set_article_categories
set_the_flash
redirect_to :action => '...
2006 Feb 15
9
newbie-> help understanding "magic" behavior
...ut ROR for the first time[1], and have much PHP poisoning
to overcome in my mental baggage. That said, I was delighted to find
that I could make a link from a "show" page to the next record in the
database by simply adding
@next_page = Content.find(params["id"].next)
to my content_controller.rb and then constructing a link to it within
my show.rhtml.
The only definition of the ''next'' method I can find is within the
''paginator'' class, yet I am not invoking that class as far as I can
tell. So there''s no problem with next per se, but try...
2006 Nov 04
0
Problem with edge rails, controller namespaces and routes
...ontroller which is responsible for
updating much of my site''s content. I''ve decided to make this a
subclass of Admin, so I can organize my administrative related
controllers into their own directory. So I have the following class
definition inside ''app/controllers/admin/content_controller.rb'':
class Admin::ContentController < ApplicationController
....
end
and then in my routes file, I have:
map.with_options(:controller => ''admin/content'') do |content|
content.content_list_faq
''admin/content/faq/list/:section'', :action =...
2006 Nov 04
0
Question about named routes - getting "No url can be generated for the hash"
...example, I have an
AdminController, as well as a ContentController. I decided to make
ContentController a subclass of the AdminController, because the
content management portion of the site is only accessible to
administrators, and that way I can use the following hierarchy:
app/controllers/admin/content_controller.rb.
I also have the following routes defined:
# Content Routes
map.with_options(:controller => ''admin/content'') do |content|
content.content_index ''admin/content'',
:action => ''index''
content.conte...
2006 May 08
4
Tables names with model classes in seperate modules
I have a module that deals with content pages and categories in my
application so create following tables:
content_pages
content_categories
Obviously I need a Page and Category module to map to these tables, but
in order to avoid conflicts with other Category classes, i declare my
model classes like this:
Content::Page
Content::Category
Now, that''s all fine - except that my models
2006 Oct 23
10
text_field_with_auto_complete
Hi,all
I''ve used text_field_with_auto_complete for a while but still haven''t
figured out how to store the value that I selected from the suggested
options. any hints?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jul 29
2
uninitialized constant ApplicationController
...uot;/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''",
"/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing''",
"script/../config/../app/controllers/content_controller.rb:6",
"/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in
`load''",
"/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in
`require_or_load''",
"/usr/lib/ruby/gems/1.8/ge...
2006 Apr 14
1
Script.aculo.us Effects with callbacks not working as it should.
...ntent_or_editor to the height of the current content.
// We do this so the div doesn''t get very small and flashes
when the content_node is completely faded.
// For some reason if the height is lower than approx. 190px,
// the toolbar of the editor overlaps the content_controls div....??
var content_or_editor_height = ''height: '' +
Element.getHeight($(content_elements[''content_or_editor''])) + ''px;'';
$(content_elements[''content_or_editor'']).setAttribute(''style'',
co...
2005 Aug 07
11
HABTM Movable Select Box
Hi,
I found it a while ago, an add-on to Rails for supporting movable select
boxes, but I searched through the wiki and the mailing list and couldnt
find what I was looking for. I was hoping someone might know of or
remember something about the project.
Thanks,
Dylan.