Displaying 20 results from an estimated 70000 matches similar to: "access to acts_as_threaded"
2006 Mar 15
5
acts_as_threaded - help ???
Hi, has anyone successfully used the acts_as_threaded plugin with
postgresql?
I''m using rails 1.0 and ruby 1.8.4 on linux.
Following the screencast on
http://www.railtie.net/articles/2006/02/05/rails-acts_as_threaded-plugin ,
I got to where we''re ready to create our first post, having made the
changes to controllers/posts_controller.rb, views/posts/_form.rhtml,
2006 Feb 06
3
acts_as_threaded plugin
This plugin is related to the acts_as_nested_set functionality but differs
in that it allows multiple roots to exist within your database.
The other benefit, is that when adding a child, it doesn''t perform a full
table update to rebuild the tree, each child insertion only affects the tree
that it is placed in.
It even comes with my first screencast to show how you can build an old
2006 Jun 22
0
acts_as_threaded with pagination
Does anyone have the magic sql to get pagination working with
acts_as_threaded?
Return like:
1 - parent
1.1 - response
1.1.1 - response to response
1.2 - response
2 - parent
2.1 - response
etc... up to the first 20 or so.
It seems easy to get from a parent to all children, but to say get the first
20 parents and children is really hard for me to get my head around. I can
imagine getting
2006 Feb 07
9
Is there a good time_select tag helper?
I''m trying to record a list of start and end times, and they''re simply
an hour and a minute. Looking at the API, there''s a select_time
helper, but that just creates the tag. There''s a datetime_select
helper which takes an object and method name, so it does all the
magic...but I only want to worry about the hour and the minute. I''ve
tried writing my
2006 Feb 05
1
acts as nested set
Hi Railers,
Is the nested set model restricted to only one root?
I''m working on a screencast building a threaded forum and nested set comes
close but is lacking a few items for this project.
First, all the documentation I can find restricts a nested_set to one root
node, and a threaded forum would have many roots. Also, without a ton of
fancy sql or an ungodly amount of db calls, it
2006 Feb 06
2
acts_as_nested_set
Where can I see the API acts_as_nested_set constructs? I''ve read its
page in api.rubyonrails.com but I don''t see how to manage the tree
from there.
-- fxn
2006 Feb 25
3
Enumerating over a Tree by Depth
I have a model using acts_as_tree which is working fine.
Being new to Ruby I''m don''t know what enumerator is best to use for
traversing a tree by depth. I can write one, but before I do I wanted
to know if there is there an enumerator for traversing trees available
that the community recommends?
Thank you,
Jose
--
Posted via http://www.ruby-forum.com/.
2007 Jan 24
8
Viewing Rails from non-localhost using WEBrick server
During development, I''d like to see my Rails app from a computer other
than localhost on a Linux system and also want to change the default
port#. I thought this would do it:
Linux server:
$ script/server -b 10.4.1.84 -p 5432
=> Booting WEBrick...
=> Rails application started on http://10.4.1.84:5432
=> Ctrl-C to shutdown; call with --help for options
...
Windows browser URL:
2008 Jul 21
3
Asymmetrical HABTM(?)
What is the best way to set up a relationship between two tables where
table-1 has a one-to-one relationship with table-2 but table-2 has a
one-to-many relationship with table-1?
For example, suppose there is an events application (seminars, forums,
conferences, etc). Each event has only one address but since many
events can occur at the same location throughout the year, a given
address can
2006 Jul 14
0
acts_as_nested_set and acts_as_threaded
I''m trying to use acts_as_nested_set, as modifed by Bob Silva to add
threaded functionality. I''m getting the following error:
undefined method `display_threads'' for #<PostController:0x3ae9828>
...
#{RAILS_ROOT}/app/controllers/post_controller.rb:18:in `list''
Line 18 in post_controller.rb shows:
[post_controller.rb]
def list
display_threads @posts
2006 Apr 29
2
counter_caching clobbered when preloading association ?
Hi,
I''m trying to use counter caching in a tree structure (in this case Bob
Silva''s threaded list). This is the definition:
class Folder < ActiveRecord::Base
acts_as_threaded
has_many :files
end
I would like each parent to have the total count of all the childrens
member. So when inserting a new file I update the file_count following
the parent_id through all the
2006 May 12
5
Bumping threads in a forum-type app
I have a forum-type application. The Board model has many comments, the
Comments model acts as a tree. So I have a board with multiple
comments, some comments are parent comments and there are comments that
belong to a parent comment, making up a thread.
Like most forums, I want it so that threads are sorted based on the date
of their last comment. But I have no idea how to specify this in
2006 Jun 20
2
Converting from acts_as_tree to acts_as_nested_set
I''m currently using acts_as_tree to display threaded Comments on my
forums-like site. It''s waaay too slow to display a page with 1,000
comments, as it''s issuing a TON of selects.
I''m pretty sure I want to convert to the nested set model, using
acts_as_nested_set or acts_as_threaded. This should give me the
performance I''m looking for.
The problem,
2006 Mar 03
5
Message Board?
I''m interested in working on a message board application that uses ruby on
rails.
I''d like to see something end up similar to vBullieten, but with more of a
37signals type of less-is-more philosophy... mostly meaning less need for
preferences and settings and configurations.
I''ve checked rubyforge, and it looks like there are various forum apps
uploaded there, some
2006 Mar 08
6
Difficulty with params hash and submit_to_remote
Hi,
Is there any trick to initializing the params hash via submit_to_remote()? I
have a form with two submit methods - the regular, non-AJAX method, and the
AJAX method. The regular method works like a champ. The submit_to_remote
invokes the correct controller, but the params hash is empty except for the
values for :action and :controller.
I''d show my code, but it''s on
2006 Jul 13
3
date_helper megapatch and MultiparameterAssignmentErrors
Hello all,
There''s a great patch in trac that fixes a lof of issues with the
date helpers. I''m afraid it hasn''t had any attention yet.
http://dev.rubyonrails.org/ticket/3811
This fixes all the little date_helper problems, except one: When you
choose an invalid date ActiveRecord throws an
ActiveRecord::MultiparameterAssignmentErrors. This used to work in
1.0,
2008 Apr 16
4
Doing a radius/location search
The application I''m developing allows people to create events in their local
area; as part of this feature I want to display a list of, say, the five
most recent events within 30 miles of a person''s location.
I have a User model and a Profiles model which contains the user''s location
(city, state, zip code) among other non-related personal information. So
what I would
2007 Aug 07
26
rmagick on windows
Is there any special way to set up rmagick on windows, I installed the
gem, and i install imagemagick, but it says it can''t find a CORE_.. .dll
file. Can someone give me a run down on how to do it on windows.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
2007 Dec 17
2
Error in send_file
I''m trying to add a link to download a zip file. I created a
controller method that makes the call to send_file:
def getzip
send_file ''file.zip''
end
When I navigate to this link I get a MissingFile exception. The file
definitely exists (and U triple-checked paths and spelling) and the
permissions are 644. I tried moving it to the /public folder and
updating the
2007 Nov 22
7
Problem Installing RMagick with Instant Rails on Windows
I''m running Instant Rails 1.4 on Windows XP with SP2.
I have downloaded the Windows binary version of RMagick from the
RubyForge page.
Specifically, I have downloaded:
1.14.1 binary gem for Ruby 1.8.5 (fixed for RubyGems 0.9.4)
RMagick-1.14.1_IM-6.3.0-7-Q8-2.zip
I have removed any older versions of RMagick using:
gem uninstall RMagick
I have updated my version of rubygems.
I