search for: ormasen

Displaying 18 results from an estimated 18 matches for "ormasen".

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}]*)"/,
2008 Oct 22
0
Re: Rails 2.1, version_fu, ActAsVersioned and => "undefined method `find_version"
Ahh. Now I saw that I find_version was removed from the pluggin... - Henrik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2011 Mar 22
0
Error on ajax forms/links in jQuery UI tabs
I''ve implemented jQuery UI tabs, and I get an error: When i submit a ajax form or link, it gets submitted multiple times. As seen in this Doom console output: DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE http://localhost:3000/innmeldings/101
2011 May 28
0
Coffeebeans - smart to use?
Not sure if inline coffeescript is smart. Has just learned why inline javascript not is smart, so I don''t understand why it now should be a good thing with coffeescript. On the other hand: I find the ability to use it when responding to JavaScript (JS) requests very nice, so I wonder why this is not an standard option in Rails 3.1.rc1? Will this come i future releases? Will it therefore
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
2007 May 14
2
Monit apache2 and fastcgi
I''ve installed monit to stop my server hanging (don''t know why, it''s an dual-core processor and 2gb memory, wich should be plenty for our needs). I should like to also monitor the fastcgi processes, but I can''t find any pidfile. How can I monitor that? - Henrik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
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 Sep 25
2
@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
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 !=
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