Displaying 5 results from an estimated 5 matches for "blog_entri".
Did you mean:
blog_entry
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
...blog-writing
- I''m using FCKEditor, and it takes a few seconds to pop in place
upon the reload of the partial (which is less than elegant)
The solution that I came up with was to use the returned and evaluated
javascript/jQuery to re-write parts of the form so that it would
submit to my blog_entries controller and be treated correctly. So, I
have to change the method from POST to PUT, which in rails means
creating a hidden form element like so:
<input type="hidden" name="_method" value="put" />
and then changing the form action from
action="/blog_...
2009 May 05
1
will_paginate problem
Hi all,
I''m having a bit of a problem with displaying a blog list using the
will_paginate helper. My code is:
entries_controller:
def index
@entries = Entry.find(:all)
@blog_entries = @entries.paginate( :page => params[:page], :per_page =>
4,
:include => :user,
:order => ''topics.updated_at
DESC'')
end
Basically I am trying to display a blog index which is the c...
2006 Feb 03
0
newbie trouble with find method and dual many-to-many relationship
Hi,
I''m trying to do something which I think is fairly simple, but I''m stuck on the
syntax. Briefly, I have three classes: users, groups, and blog_entries.
There''s a M2M relationship between users and groups, and a M2M relationship
between groups and blog_entries.
I''ve got my classes defined ok, but in my "list" method for the blog_entries I
only want to list those blog_entries that belong to groups of which the c...
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
2008 Sep 13
3
Freebsd auto locking users
Dear FreeBsd gurus, I have a problem concerning users password and
authentication policies. The goal is
1)make freebsd to lock users after 3 unsuccessful login attempts,
2)force users to change their passwords every 90 days
I've done such changes in Linux distros, with various PAM modules.But in
Freebsd it seems that i need to use login.conf file. Here I made
necessary changes in that