similar to: Parent Child together in input form

Displaying 20 results from an estimated 4000 matches similar to: "Parent Child together in input form"

2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
Hi all, I was playing with the sample project found on the Wiki at http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails , and everything was working fine, ... till I moved to EdgeRails : undefined method `weight'' for #<Hash:0x22c7150> (full error thread below) Any idea? Alain
2005 Dec 18
2
[Bug?] in tests, @foo.bars_count <> @foo.bars.count
Example: if a ''foo'' has 3 ''bars'', bars_count == "0" # ERROR bars.count == 3 # OK It looks like a bug to me. Alain -- Posted via http://www.ruby-forum.com/.
2005 Dec 21
7
Are there any disadvantages to using locomotive
Hi: I had some issues and so switched to locomotive. I find it awesome. 1 click and its done. My question - what disadvantages are there, if any? What do I lose by using such a convenient solution. speculation as well as facts are welcome but please define which you are putting forwards. Thanks in advance, bruce
2005 Dec 16
13
How to pass a collection to paginate?
There must be a better way to write this code: @project_pages, @projects= paginate :project, :per_page => 10, :conditions => ["account_id = ?", account] ?! If only I could pass the sub-collection account = ... @projects = account.project to paginate, instead of letting it extract it with a find :all + sql conditions Alain. -- Posted via
2006 Feb 14
20
Adding payment to an app: how hard and risky is it?
Hi all. I have never implemented online payment and it''s the only thing that keeps me from accepting a project for a UK based client. (I must reply quickly!) While I can afford spending an extra week - or 2 - to learn/try/tune the payment system, I must be sure to succeed before I accept the contract. If you''ve already been through that path, any hints, links and/or
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All: I''m writing my 1st Rails app and I can''t seem to find the answer on the web or in the book. I''m making a table, and I want to be able to expand a filename. The code is basically as as follows below. In the last <td> entry, I want to call an action and pass in the test_results_path, which I will go and read a file and munge the data for a separate
2005 Dec 16
6
managing belongs_to fields in a form
Hi all, I cannot find a clean way to create/edit an object that ''belongs_to'' another one, just by using form fields. I always need to explicitely unassemble it, store the master id in a hidden field, and then refetch the master from its id, and put it back in the object. To summarize: I want to create a new member, for a given project @project= ... @member =
2006 May 17
13
Using NTLM for S.S.O. in Rails
Greetings all, To all the good souls that happen to know NTLM and Rails.... Short version: -------------- - I''m looking for server code to extract credentials through NTLM dialog with the client (IE) - I found nothing usable/useful (as they both implement the client side code) in - rubyntlm on rubyforge - lib ntlm-ruby by Jonathan Bastien-Filiatrau LONG version:
2006 Feb 01
5
lighttpd not starting on os X (intel)
Hi all, I''m followed the instructions written here to prepare my new iMac for Ruby / Rails developement: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger When I run script/server I get the following output: harm-de-laats-computer:~/rails/test harmdelaat$ script/server => Booting lighttpd (use ''script/server webrick'' to force WEBrick) =>
2006 Jan 13
3
related drop down list / ajax
Hi all, I''m trying to create a related dropdown box: In my view: <select name="category" id="category"> <option value="">Select category</option> <% @categories.each do |category| %> <option value="<%= category.id %>"> <%= category.title %> </option> <% end %>
2006 Aug 13
3
escape block using red cloth
Hi all, Is it possible to configure red cloth to escape a block such as: ------------------------------------------------------------------ Hello, _this_ works *beautifull* [code lang="ruby"] def foo bar end [/code] ------------------------------------------------------------------ The text in the [code] block should not be parsed by Red Cloth''s to_html method. I cannot
2008 Aug 08
2
[lme4]Coef output with binomial lmer
Dear R users I have built the following model m1<-lmer(y~harn+foodn+(1|ass%in%pop%in%fam),family = "quasibinomial") where y<-cbind(alive,dead) where harn and foodn are categorical factors and the random effect is a nested term to represent experimental structure e.g. Day/Block/Replicate ass= 5 level factor, pop= 2 populations per treatment factor in each assay, 7 reps
2006 Jan 03
1
validating model without saving
Hi all, I would like to validate my model without actually saving it to the database. Actualy I need it as follows: User enters user details in a post form. When the user submits the form I would like the form to be validated. However, when validation passes, I don''t want to save the model yet, but I would like to store it in Session context. Is this possible at all? And if so, how
2005 Dec 25
2
[repost] newbie questions
Hi all, I''m following the shop example in ''Agile Web Development with Rails''. I would like to extend the checkout screen, in such a way people can change the number of items they have selected in there cart. In my controller I have: def checkout @cart = find_cart @items = @cart.items if @items.empty?
2006 Jul 01
22
TextDrive complaints
Hi all, I have deployed my Ruby On Rails application on TextDrive. At first everything seamed to be fine. However, lately, response time of my application is incredible slow. Worse, lately there is also a lot of downtime. I have contacted their support desk, however, they do not respond (at all, or very, very late). Has anyone else these experiences with TextDrive? And if so, what did you do
2006 Jan 09
11
Fast Ruby Debugger?
After developing in Java for years in IDEs I''m starving for a decent ruby debugger. When learning new codebasesI find it invaluable to use the debugger to step through the system and see how things work at runtime. Using RDT in Eclipse is fine but it''s excruciating to wait minutes for the default debugger to finally reach my breakpoints on tests that normally take seconds to
2006 Jan 02
2
charting (freechart)
Hi all, We are a Java development team, but we are considering rails for our next project. However in this webapplication I need to do a fair amount of charting. In Java we used JFreechart (http://www.jfree.org/jfreechart/index.php) for this purpose. What are my options for charting in Ruby? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Nov 01
1
parent folder rX -> child file in it rwx => child file from windows read only????
dear everybody samba is 3.5.11-79.fc14 is this weird or my logic fails, I was hoping that if a file has unix 770 then Win clients should be able to write to it even if parent folder is 750 also if a folder is 770 and a Win client creates a new folder in it, its unix permissions get set to 755, and yet! another(different) Win user can just delete this newly created folder. with what
2006 Apr 02
1
switching environments
Hi all, I created a Rails project on MS Windows. Now I''m on my Mac, and would like to extend this existing project. However, I can not run the script/generate, because the scripts all reference the windows directory of Ruby. Is there an easy way to switch to the Unix environment? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 17
1
Effect.appear
Hi all, Is there a way to use the onLoad event of a page to start the Effect.appeareffect? I''m trying like this, unfortunatly this does not work: <html> <head> <%= javascript_include_tag :defaults %> </head> <body onload="new Effect.Appear(this);"> My Body </body> </html> Any idea how to get this to work? Kind regards, Harm de