search for: railsweenie

Displaying 11 results from an estimated 11 matches for "railsweenie".

2006 Dec 27
4
acts_as_taggable issue
This won''t post with a full code paste, so I''ve got to link it to another forum where I''ve posted it. http://www.railsweenie.com/forums/1/topics/1053 Can''t get the acts_as_taggable plugin to play nice. Works in console, not in teh view. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post...
2006 Jun 15
5
[Fwd: Functional test problem]
Anyone? -------- Original Message -------- Subject: Functional test problem Date: Wed, 14 Jun 2006 19:49:03 +0100 From: Chris T <ctmailinglists@gmail.com> Reply-To: ctmailinglists@gmail.com To: rails@lists.rubyonrails.org Embarrassingly late (apps already well advanced), have decided top get to grips with testing and am having a week hopefully covering everything I''ve
2006 Dec 07
0
Invalid character and win32
...etting either "invalid character" or "unexpected end" error messages from "normal" html in rhtml files. I am running ruby 1.8.5 (via 1-click installer) and get this error from both my functional tests and via mongrel. It seems very simliar to the thread at http://www.railsweenie.com/forums/1/topics/280?page=26 , but for all I know it''s entirely unrelated. I have downgraded to 0.9.6and the aaf for that version, and don''t experience these problems. However, that version seems to have problems with the queries I want to perform, so I''d like to run...
2006 Feb 22
3
after_update: old, new values?
With after triggers in Postgres, there are special NEW and OLD vars accessible to trigger functions. Any such thing in Rails? Or would it entail doing something like setting a class var in before_update? Jack -- Posted via http://www.ruby-forum.com/.
2007 Jul 04
2
content_type from a local file?
I''m using a Rake task to add local files into a database designed for use with attachment_fu. http://eldorado.googlecode.com/svn/trunk/db/migrate/039_create_avatars.rb http://eldorado.googlecode.com/svn/trunk/lib/tasks/import_files.rake So, attachment_fu has a "content_type" field, which apparently is receiving that information from the browser...? I''m trying to
2007 Jul 24
4
Rspec on rails with out database?
Hi all, I am trying to use rspec_on_rails in a Rails app that doesn''t have a database. so far I have just been faking it out by dumping in a sqlite3 database just to make Rails happy. I was using for test::unit a rake task that eliminated the calls to database prep: # Added this .rake file to keep Rake happy without a database. # Remove once a database is in the picture.
2006 Jul 21
10
Using an image button for "link_to_remote"
All, I want to do an AJAX request using a custom image button. I currently have this as a standard button action using "button_to". What I need is the button equivalent of "link_to_remote". Is there a helper that I can use, or do I need to build it by hand? I see button_to_function(), but that sets me up to call a Javascript function, not post to a Rails action. Or can
2007 Jan 29
6
RJS problem
Hi, I''m implementing a "digg-like" page, that once you digg. The score for each item will dynamically reflect your current action +1 . I am not sure what''s In the controller I have an action responsible for increase of the score.It has a corresponding rjs in view. -------------------------------------------------------------------------------- def arouse
2005 Dec 31
6
habtm recursion via destroy_without_callbacks
I am having a problem with two models that each have a HABTM relationship to the other. For example: CREATE TABLE people (id INT, name TEXT); CREATE TABLE teams (id INT, name TEXT); CREATE TABLE people_teams (person_id INT, team_id INT); The person model has: has_and_belongs_to_many :teams And the team model has: has_and_belongs_to_many :people The trouble comes when trying to destroy
2007 Apr 27
3
attachment_fu content_type problem
Hi all.... Admittedly I''m new to Rails and trying to find my way but I''m having an issue with uploading documents with attachment_fu. I have a form where I''m uploading multiple attachments (using AJAX to add file_filed_tags). That seems to work pretty well. The problem is I can''t seem to get the content_type to work as I would expect. For example, if I use
2006 Apr 20
8
SCM for a Rails project - Darcs or Subversion?
Hi everyone. I''m choosing an SCM for my current Rails project. Up until now, for my other (non-Rails) codings, I used Darcs and liked it very much. I''d prefer to use Darcs for my Rails development as well. Looking into the matter, I''m somewhat deterred by the appearant dominance of Subversion as the SCM tool of choice for Rails hackers. Is there a technical reason for