Displaying 11 results from an estimated 11 matches for "blogentry".
Did you mean:
logentry
2006 Aug 01
1
Some errors in the blogentry with instructions on how to install Xvnc on Solaris
Hi,
I created my first Xen DomU running Solaris today using the instructions
from this page Creating Solaris domU virtual disk images at
OpenSolaris.org
<http://www.opensolaris.org/os/community/xen/How-To-07-2006/Solaris-domU/>
and it works out of the box!
That''s cool again!
If you''re going to do the same (and I encourage you to do so!) be aware
that it takes a
2006 Jul 11
0
dynamic routes from the url? is this even possible?
...to routes.rb that it creates the
values of the symbols you define in the rules? what i mean by this is,
is there a named variable that contains the url sent in the request
that i can get at to force values into my rules?
i''m trying to do the following:
i have a url.. www.my_domain.com/abc/blogentry/show/1
and the rule.. map.connect '':site_code/:controller/:action/:id''
nothing strange about that, sure. but what i want is for :controller
not to be ''blogentry'' but to be ''sites/blogentry'' (within the
''controllers'' folder i ha...
2006 Apr 07
1
how to map one-to-one relation to two tables
hi. iv got a problem with one-to-one relation with AR. let''s say I need
this classes:
class ContentObject < ActiveRecord::Base
class BlogEntry < ContentObject
class FotoEntry < ContentObject
i.e. Blog and Foto entries must extend ContentObject. Also they must be
mapped to separate tables. I can not figure out how to map this kind of
association better?
The most dumb and straitforward way is actually NOT to extend
ContentObject...
2005 Dec 18
0
Caching question
...ntroller < ApplicationController
caches_page :index
caches_page :home
layout "ui"
def index
@siteoption = Siteoption.GetSiteOptionHash("Home")
@header_image = @siteoption["header_image"]
@header_text = @siteoption["header_text"]
@blogentry_pages, @blogentries = paginate :blogentry, :per_page => 10,
:order_by => ''created_on asc'', :conditions => "blog_id = 10"
render(:template => "/home/index")
end
def home
render(:action => :index)
end
end
________________________...
2008 Mar 03
1
How change text_area form helper into rich text entry area/control?
Do you know how to render a rich text input area (with HTML formatting
buttons (bold, italics, etc., available?)
In RoR I''m hoping this is very easy to pull off?!?
<%= text_area ''blogentry'', ''entry'' %></p>
TO
<%= rich_text_area ''blogentry'', ''entry'' %></p> ???
Haven''t found anything helpful yet with multiple Google searches.
Thanks in advance,
Pete
--~--~---------~--~----~------------~---...
2006 Aug 16
0
Creating a comments system for multiple types of
It sounds like you want a polymorphic association -
class Party < ActiveRecord::Base
has_many :comments, :as => :commentable
end
class BlogEntry < ActiveRecord::Base
has_many :comments, :as => :commentable
end
class Comment < ActiveRecord::Base
belongs_to :commentable, :polymorphic => true
end
then include columns ''commentable_id'' and
''commentable_type'' in the comments table, and
ActiveR...
2008 Oct 06
2
Letting a user choose pictures
I have an area on a site where a user can upload pictures to, and then
another area in which they create a new topic. Now I want a user to be
able to select photos from their uploaded photos... and I''ve hit a
coder''s block. Any tips on designing this interface?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2006 Apr 18
2
Connecting to multiple databases with multiple database users
...sandbox
username: customer
password:
host: localhost
customer_authentication_development:
adapter: mysql
database: authentication
username: customer
password:
host: localhost
Following Chad Fowler''s Rails Recipe on multiple database connections
and Dave Thomas'' blogentry at
http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/Connections.rdoc
I created a subclass of ActiveRecord::Base to establish a connection
for all models that only webadmin is allowed to CRUD. Although this is
currently not working at the moment (see my previous post to this
list) I''...
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
For the life of me I can''t figure this one out, although I can''t find
anyone else who''s attempted to do this, and probably with good reason.
Context: blog using AJAX
What I''m trying to do: when the user initially saves a blog entry, or
when auto-saving, I want subsequent saves to not create a new blog
entry
Why I can''t just reload the partial:
-
2007 Feb 01
2
file_column 2nd try....
Looks like my first question a couple of days ago wasn?t very clever
asked, at least very sucessfull....
So, anyway...i will try it again:
I have to prefix that I am far away from fully understanding the overall
concept yet, and there?s no way to get some hints in the www so far, at
least my resaerches dont lead to any helpfull stuff.
image_controller.rb:
def create
MiddleMan.new_worker
2006 May 10
8
dynamic setting of username and password in database.yml
Hello
I''ve now read a lot about application-level authentication in Rails, but
I need to do database-level authentication.
The reason is that my database needs to have the current_user (database
current_user, not current_user defined in an ActiveRecord Model) set to
execute triggers for automatically updating audit tables. So it is not
enough to have a session check against a User