similar to: couple newbie questions

Displaying 20 results from an estimated 4000 matches similar to: "couple newbie questions"

2006 Jul 31
4
mail list question
Folks, Is the only way to reply to a posting and maintain the mail thread by subscribing to the mailing list and then replying to the received email or is there another way from within the list archive itself? I don''t see a reply option to the emails in the thread. Sorry if I am missing something obvious. Thanks, ST -------------- next part -------------- An HTML attachment was
2006 Aug 14
4
Updating a table with Ajax
I''ve been banging my head against the wall trying to update a table (add/delete rows) using Ajax. It seems simple enough but just doesn''t work for me. I can get it to work using DIVs instead of a table, but doing the layout with DIVs is much more cumbersome and I know it works for others with a table (though I haven''t been able to find an exact example code anywhere).
2007 Jan 21
1
Strange Ajax Error Since Upgrade
Hi All I''m getting the following very strange Ajax error and I''ve searched Google, this group and various other places to no avail. So I''m desperately hoping someone here can help. Whenever I try to execute any Ajax call whether as a form request or a link_to_remote link I get the following error: ------------------- FORM REQUEST ------------------- [2007-01-21
2006 Sep 07
6
form_for - Child object - how to set parent id
Hi All, I am just trying to learn ruby/rails so please don''t flame me if this is a stupid question. As a learning project I decided to create my own blog using ROR. I have created a controller that shows paged blog entries, and below each blog is a list of comments along with a form alowing the user to add a new comment. To create the form for the comment entry I used form_for
2006 Jul 08
2
Creating/Saving dependent objects
Folks, Am new to RoR and am building an example to get myself familiar. I am running into a simple issue while creating a user registration page. I have a User and Address models defined as below (partial/relevant code included below). User has_one address and Address belongs_to user. I have a foreign key defined in address table that refers to user(id) In a form I take in username, password,
2006 Jan 01
9
Child record becomes orphan
Hi all, I''ve got these company (has) contacts relational tables. I want to make sure a company can''t be deleted when it still has contacts. (because I can now, which results in nil like errors when listing the contacts ... obviously) Are there any helpers to do so, is Rails aware of this? Or do I need to put in a condition before destroying the company record in question
2006 Feb 10
1
validation error reporting on child object
How does one deal with validation error messages on child objects of the main model object behind a page? I have the basic blog w/ comments page (only my "entry" is a "proposal"). I have the comments saving just fine, but I wanted to show an error if the user hits the submit button without typing anything in the comment. I added "validates_presence_of
2008 Apr 14
2
Problems with nil object
Hi to all. I''ve a very big problem. I know this can seem very loing, but please, try to read it. I have a simply blog, with posts and their comments. I''ve two tables in my db, posts, with post id, text and comments_count to store the number of comments-children of each post (as recomanded to do in AWDWR); and the table comments, with comment id, post_id for the post
2007 Sep 23
9
Code reviews: my dumb use of acts_as_commentable (newbie)
With the help of several heroes here yesterday I beat my way into a working solution to adding comments to one or more models in my application using acts_as_comentable. Great plugin, but my implementation is lame. I need enlightenment. I have users who log in. For several views I want to let them add comments. Enter act_as_commentable which does just this -- it''s polymorphic, so you
2006 May 15
33
acts_as_commentable release
I now have the acts_as_commentable plugin up on RubyForge. This plugin will allow you to add comments to any active_record object in your Rails application. So far the directions are simple, and there are only a few features: To install: ruby script/plugin install svn://rubyforge.org//var/svn/commentable/acts_as_commentable In the readme there is a sample migration you will need to use, with
2006 Apr 05
2
How to add add child items to parent via parent show view?
I want to know the standard/easiest way to add items to a parent? Example: comment added to post I would like this to happen in the ?show? view of post using a form that is shown when the user clicks the ?add new? button/link. I would also like validation on the child form with the validation errors appearing in the post show? view. Two problems are presented: 1) When the user clicks the
2013 Aug 12
1
BTRFS corruptions counter
Hi, We decided to give BTRFS a try. We find it very flexible and generally fast. However last week we had a problem with a Marvell controller in AHCI and one BTRFS formatted hard drive. We isolated the problem by relocating the disk to an Intel contoller (SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) had a lot of problems and I managed to overcome them by
2009 Oct 26
2
find_with_ferret issue
Hi All, I''m implementing the ferret search engine on my railspace project. In my User and Info model, I have line that reads: acts_as_ferret :fields => [''username'', ''email''] This initially generates a find_by_contents which is added to the community contoller: @users = User. find_by_contents(query, :limit => :all) THis returned a method
2010 Mar 05
15
Three submits, one controller
I have a ''new'' page with a submit for creating stories. On the ''show'' page the submit allows a user to enter comments. I now want a ''edit'' page for the stories with another submit for updates. I have used the ''create'' and ''update'' methods in the stories_controller on the ''new'' and
2019 Oct 02
3
CentOS 8 Broken Installation
Hello, Am Mittwoch, 2. Oktober 2019, 22:36:37 CEST schrieb mark: > Jonathan Billings wrote: > > On Oct 2, 2019, at 3:27 PM, Jonathan Billings <billings at negate.org> > > > > wrote: > >> Is there a bug filed on https://bugzilla.redhat.com/ > >> <https://bugzilla.redhat.com/> yet? Have you submitted the errors you > >> encountered
2001 Sep 30
3
UTF-8 stuff
Here's a propsed heavy-duty solution for your UTF-8 problems. I'm including a patch in this message, but I'll put the new files on my web site at http://rano.org/tmp/xiph_files.tar.gz I've tested this by running vorbiscomment with and without -DHAVE_ICONV=1 in vorbis-tools/share/Makefile. It seems to work. Changed files: acinclude.m4: Add a test for nl_langinfo(CODESET). This
2006 Aug 13
7
you can pass multiple parameters using link_to? anything bad
i just found out i can pass mutiple parameters from views like <%= link_to doctype.name, :action => "show_towns", :id => doctype.name, :id2 => doctype.id%> silly me, i always had the impression that i could only pass 1. i guess i dont have to use sessions after all for my site. is there anything wrong with this? basically instead of the user filling out
2006 Feb 21
2
validations and directing errors
I am starting to play with validations as I want to catch errors before SQL rejects inserts to the table which are ugly when nulls are sent to ''Not Null'' columns, etc. If I do something in my model like... validates_format_of :first_name, :with => /^\w+$/, :message => "you moron, enter a name" I still end up
2019 Oct 03
4
CentOS 8 Broken Installation
Hello, Am Donnerstag, 3. Oktober 2019, 01:10:58 CEST schrieb Akemi Yagi: > On Wed, Oct 2, 2019 at 3:35 PM G?nther J. Niederwimmer <gjn at gjn.priv.at> wrote: > > This Board have 2 Controller!? > > 00:1f.2 RAID bus controller: Intel Corporation C600/X79 series chipset > > SATA > > RAID Controller (rev 06) > > > > On this controller all drives are
2005 Dec 17
1
file_column url_for_file_column from within controler
Hello, i hope somebody can help me: How can i get the path/url for a file stored with file_column within any contoller? Is it somehow possible to use the url_for_file_column method from the file_column_helper.rb ? Greetings and thanx for any advise, Marc -- Posted via http://www.ruby-forum.com/.