search for: phlip

Displaying 20 results from an estimated 145 matches for "phlip".

Did you mean: philip
2006 Aug 15
5
Set up a default route
Phlip wrote: > Can I fix it by adding a view called ''inventories''? That worked, because I have a sufficiently late version of MySQL. Next question. What does "Set up a default route" mean? When I read... http://wiki.rubyonrails.com/rails/pages/Routes ...it reminds...
2007 Feb 03
7
Interesting radio button behavior with "onclick"
Hello: I have radio buttons like this: <% fields_for :goalhist do |g| %> <table> <tr> <td align=left><%= radio_button_tag (''duedate'', 0, checked = false, options = {:onclick => ""}) %> &nbsp;&nbsp;Start now </td> </tr> <tr id="detailed" style="display: none"><td colspan=2>
2007 Feb 16
13
negate the regexp in validates_format_of
...ere might not know how to do this: validates_format_of :field_must_break, :with => /\n/ validates_format_of :field_must_not_break, :with => /^[^\n]$/ The second one fails with data that correctly have no \n linefeed in them. How do I - I mean "they" - negate a regexp? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ 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...
2009 Feb 25
5
[Cucumber] pretty html output?
Cucumberists (and RSpec Classic users ;): How can we convert a Cucumber feature file into HTML with syntax highlighting? Not the test-runner output; that''s preprocessed so it does not match the input file... Tx! -- Phlip
2008 Feb 18
5
uh... fixtures?
...s :forums, :moderatorships, :monitorships, :posts, :topics, :users it ''should require body for post'' do @post = topics(:pdi).posts.build @post.valid? assert @post.errors.on(:body) end end And the whiny nil error message hits topics(:pid). Any ideas? -- Phlip
2006 Nov 28
11
New Rails Site: Wordie
My latest stupid web trick, built, with love, in Rails: http://wordie.org Make lists of words. See who else likes the same words. Basically, it''s a dating site. Built on thanksgiving while half-watching football and launched yesterday. In other words, half-baked, but I thought some of you might find it mildly amusing. John ____________________________ John McGrath Squirl: a site for
2009 May 05
9
no sql in the controller guideline
hello. i just checked Chad Fowler''s post "20 Rails Development No-No''s" and one guideline caught my attention. it says: "Nothing that looks at all like SQL should go into a controller, view, or helper." it really came as a surprise to me as Rails itself seems to go against such practice by its AR ''conditions'' option, which most of the times
2009 Jul 06
8
how to make ZenTest autotest run whenever my tests change
...Then I make a non-trivial change to a correctly-named test file, save the file, and nothing triggers. (Pure Ubuntu Linux substrate, BTW.) So how do I trigger? If I could get that working, how can I TDD both story and unit tests AT THE SAME TIME, without using two different test runners? -- Phlip
2009 Feb 01
8
undefined method `inherit'' for Merb::Test::ExampleGroup
...se into RSpec. This is the documented way to do it: describe ''Post'' do inherit FixtureDependencies::SequelTestCase And that leads to the syntax error in the subject line. (No stack trace is available - ask the Merb spec runner why!) Has anyone seen that one before? -- Phlip
2007 Apr 19
4
render_to_string in a model ?
I have a batch job that will call script/runner, I would like in this call to create html formated email and save it to the database. This is easy enough in a controller with yournewhost.email = render_to_string :action => "email_newhost_ready", :layout => false But render_to_string is only available in controller action pack, is there a easy way to render_to_string in a Model? Or
2009 May 14
6
Generated test files and bad require 'test_helper'
Why do the generated test files have: require ''test_helper'' It cannot obviously find the file because it''s located in a subdirectory. That''s annoying. -- Posted via http://www.ruby-forum.com/.
2006 Nov 04
2
how to use LabellingFormBuilder
...tion => "update" }, :builder => LabellingFormBuilder do |f| %> That''s beautiful. Now what do I require() into my controller.rb file to get that identifier? Poking around with ''form_helper'', ''helper'', etc doesn''t do it. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!
2007 Feb 04
10
where to install script.aculo.us ?
I''d like to try autocompletion, and my understanding based on AWDWR:2, and on various website tutorials, is that I should install the script.aculos.us javascript library. My question is how to do that. The instructions on their site tell me to "Put prototype.js, scriptaculous.js, builder.js, effects.js, dragdrop.js, slider.js and controls.js in a directory of your website,
2006 Dec 27
13
Where did UJS go? UJS vs. RJS
I have not been able to access the UJS site, http://www.ujs4rails.com/ for two days. Does that mean there are problems or that it has been incorporated into Rails core? In general, what do you think of using UJS instead of RJS? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2008 Sep 06
6
Active record question
I''m not quite sure how to get at this data using Actrive record.. I''m trying to get all the appointments made for a particular project. I''m using four models, Projects, Tasks, Resources and Appointments. The SQL gets me what I''m looking for but how do I do it using Active Record? Select a.* from appointments a join resources r on r.id = a.resource_id join
2009 May 10
4
How to generate UML diagrams from existing ruby code?
Hi, thanks for reading. Till now, I''ve used railroad to visualize my models. But as far as I can see, there''s no possibility to add information about the model class methods. Methods are only added to a diagram, if you visualize your controllers. Is there a way to change this behavior? I''ve looked out for something else and found ''ruby-uml'', seems to
2006 Aug 15
6
try creating a table for your model
...;feature"? Can I fix it by adding a view called ''inventories''? Or must I rename the table? And how, in general, can Rails present data views that don''t have the same shape as the target database schema? Such schemas should be normalized beyond recognition... -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!
2008 Jun 15
5
Ruby on Rails 2.1 Tutorial
Hi, I have put all the basic things in place and you will find it a working tutorial for Ruby on Rails 2.1. http://www.tutorialspoint.com/ruby-on-rails-2.1/ I have covered Model, Controller and Views in detail and you will find a nice example on scaffolding. If you like this tutorial then please share it with others....Oh yes...if you have any feedback then please definitely send it to me.
2009 Aug 06
18
Best Practices Question
Should models call action mailers, or should those calls always originate from controllers? For example, should user.forgot_password send the email, or should the user_controller.forgot_password? Just looking for some opinions... Thanks, Tom
2006 Dec 05
6
Best Book
Hi there, What is the best book of Rails??? Or the top sellers, thanks.. -- Felipe Amaral Vento Livre Internet --~--~---------~--~----~------------~-------~--~----~ 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