search for: rasism

Displaying 13 results from an estimated 13 matches for "rasism".

Did you mean: racism
2006 Jan 28
6
Check if user is in right group
What is the best way of checking this? I have 3 tables: groups users group_members class GroupMember < ActiveRecord::Base belongs_to :group belongs_to :user validates_uniqueness_of :user_id, :scope => "group_id" Then I want a method here that checks if a given user is a member of a given group. What is the right way of doing that? def
2006 Feb 21
6
Select articles from group with id ''1'' and id ''2''
I have to tables: "articles" and "groups". Between I have article_groups as a jointable. Now I want to select every article who is a member of group with id ''1'' and id ''2''. Whats best way to get that? Extract from schemas: CREATE TABLE articles ( id int auto_increment, ingress text NOT NULL, story_text longtext, constraint fk_items_users
2005 Oct 15
1
Partials and controllers
Newbie question: From a _form.rhtml file I have: <%= render(:partial => ''item'', :collection => @items) %> In _item.rhtml I have: <% @tullt = h(item.body) %> <%= @itemdb = Group.find(:all, :conditions => "id = ''#{@tullt}''").map {|u| [u.name] } %> <%= @tullt % I think it would be better to
2006 Apr 08
5
rails.el on Ubuntu
Anybody who have a working .emacs (++) for Ubuntu (or Debian) with the newest emacs-rails (v.0.3). I have especially trouble with getting HTML Mode Snippets to work. - Henrik
2006 Apr 08
76
MIT vs GPL vs LGPL for open source project
I intend to release a project I wrote with Rails. What is the right licensing scheme for a web application (content managing system) which could grow with plugins and add-ons ? Personally, I would prefer the GPL but does that mean any add-on to the CMS (like task management) will have to be GPL ? If some people contribute to the code could it still be double-licenced so that the people who
2006 Jun 07
0
Create new Image Plugin?
I''m working on a CMS for some time now. I need some kind of functionality to deal with images. As I know there are to plugins available: SuperImage and FileColumn. Neither of these have exactly what I want. What I want is a plugin with the following functions: - A poppup window (or ajax field) where you can search for, scroll trought pictures, find the one you will have, press on that,
2006 May 15
1
Ajax Scaffold is htmlescaping "&" in url''s
Seems like I have a problem with html escaping of "&" in my url''s. "Create New" have following link: http://localhost:3000/stylesheets/new?scaffold_id=stylesheet&amp;page=1&amp;sort_direction=asc Any ideas how I can fix this? Using: ajax_scaffold_generator (3.1.2) & rails (1.1.2) Regards Henrik
2006 Apr 09
0
Upgrading form 1.1.0 -> 1.1.1 breake my app :-(
Webrick isn''t starting with 1.1.1: $ /var/www/newsonrails/trunk/script/server => Booting WEBrick... Any idea what it can be/ were I can search for the error? - Henrik
2006 Sep 15
1
quotes
Hello! I''m new on this list (and actually pretty new to redcloth also). This e-mail is about the wery fine feature of converting quotes. I''m norwegian, and we have our own qoutes: "?" and "?". I therefore hacked this feature, so it is now in lib/redcloth.rb, around line 404, so I now have: [ /([^\s\[{(>#{PUNCT_Q}][#{PUNCT_Q}]*)"/,
2006 Nov 04
0
@article.article_groups.delete_if... Dosn''t work!
If I try: @article.article_groups.delete_if {|x| x.group_id == x.group_id } It does nothing. If I try: articletmp.article_groups.each{ |x| @article.article_groups.delete(y) } It deletes some of the groups. @article.article_groups.clear works. Why dosn''t the to first examples work as expected?? Do I have to put groups I don''t want to
2005 Sep 29
1
Ajax in the Aguile Web Development... book
I have bought the book, and are working with chapter 18 (about Ajax). I don''t get the List application example to function as expected. When i fill inn a name, and presses "Add Item". The button gets gray, the text "Adding..." is coming up, and the item is being written in the top of the page, but then it freezes here. I uses the newest rails, installed with Gem, and
2006 Jun 04
4
Fil from filsystem -> db
Since Ajax doesn''t support file uploads, I''m using "IFRAME remoting made easy" (http://sean.treadway.info/). I''m saving a file to the filesystem, and then trying to put it in to the database when I do the final submit with ajax. I thought picking the file up and putting it in the db would be as easy as having: "@image.data =
2006 Jan 30
3
Howto change @article.article.headline to @article.headline ?
I have to actions: def index @articles = Article.find(:all, :conditions => "un_published != ''1''", :order => "created_on desc") end and def group id = params[:id] @articles = ArticleGroup.find(:all, :include => [:group, :article], :conditions => ["articles.un_published !=