Recent Posts
|
4 hours ago
Jon Gretar B...
1 post
|
Topic: A Peek at Computer Electronics / Printed version +1 for printed version. |
|
11 hours ago
Brian Marick
20 posts
|
Topic: RubyCocoa / Controllers and Cocoa I’m going to introduce an NSWindowController in the chapter I’m writing right now, where it’ll be used for a preference pane. Since so much of what NSWindowController does is tied to assumptions about a document-centric architecture, I’m planning on putting off most discussion until I have a chapter where I migrate the log from an ephemeral stream of text to a save-able document. I was planning on moving the log from a stream of text in a text box to an editable tree structured view. I’m starting to wonder if I’ll have the pages to do that, though. My teaching style tends toward the bottom up, so I’m more likely to show how to use lower-level building blocks before higher-level ones that (often) replace them. I’m not dogmatic about that, though. |
|
11 hours ago
Brian Marick
20 posts
|
Topic: RubyCocoa / Drag-and-drop example? I’ve put a drag-and-drop example onto my plan. It will be dragging a directory from the Finder and dropping it onto a table field that holds a pathname. Page limit is going to be a problem, so it might not make it in. |
|
12 hours ago
Mike Mangino
91 posts
|
Topic: Developing Facebook Platform Applications with Rails / fb_comments not working I think we eventually got this worked out on the Facebooker mailing list. I’ll post the solution here too in case anyone else runs into this. When using It took me a long time to figure this out. It’s a really subtle and tricky bug. |
|
12 hours ago
Mike Mangino
91 posts
|
Topic: Developing Facebook Platform Applications with Rails / Using form_tag within FB app and Facebooker routes I think the problem is in a slightly different place than you think. Your form is generating a POST form. You showed the code:
What you probably want is:
Using By default, |
|
12 hours ago
Sam Ruby
175 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Rails 2.2 features in this book Assuming that the beta of 2.2 happens shortly, the bulk of the next beta of the book will be based on 2.1.1 and will have been tested against the beta of 2.2. There will be a new chapter which describes how to enable depot for translation, this chapter (only) will require 2.2. |
|
14 hours ago
SoftMind
3 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Rails 2.2 features in this book Hi, Good News to Share today. David has just announced this on his blog…” Next upcoming release will be Rails 2.2 beta which is quite close.” Here’s the link Rails 2.1.1 was announced today and this news are covered in that blog. I was more than happy to see that many folks thinks like me here regarding Rails 2.2 coverage and it would be a great loss to have a book without rails 2.2 Pl. let your support flow here.. Thanks SoftMind |
|
18 hours ago
Paul Covell
2 posts
|
Topic: Developing Facebook Platform Applications with Rails / Using form_tag within FB app and Facebooker routes Ok I have solved the IncorrectSignature error explained above. The error can be reproduced by using :method => :get in the form_tag (in my case it was instead an unclosed form tag earlier on causing a get request—but the results are the same). The workaround for getting search terms into the URL seems to be a redirect within the action:
This may be unavoidable given the structure of: Browser < Anyone confirm this? |
|
20 hours ago
Paul Covell
2 posts
|
Topic: Developing Facebook Platform Applications with Rails / Using form_tag within FB app and Facebooker routes I am building a search query and so I would like the behavior to be like this:
Products is RESTful, so I also use GET /products/<id>/show &c. routes.rb:
products_controller.rb:
search.fbml.erb:
Generates HTML:
Which, when data is entered, generates a GET to my application (dev log)
Finally leading to the error:
I am open to other ways of doing it, but I do like having the search parameters in the URL for bookmarking/sending to others.
Is there a correct recipe for this behavior? I assume other people are building searches or other form input not directly related to an ActiveRecord object, so I think more treatment would be generally valuable. In this case, it would be nice to know more about what’s going on under the hood in Facebooker—I know that it is doing some magic to make RESTful routes work in the first place. My next stop is to read the code, but I was hoping to avoid this. Thanks for any help. Cheers, |
|
21 hours ago
Daniel Bullok
1 post
|
Topic: Pragmatic Version Control Using Git / moving code between repositories? Hi. |
|
Sep 4, 2008
Tom Fillmore
1 post
|
Topic: Agile Web Development with Rails, 3rd Edition / Rails 2.2 features in this book Ditto – longer beta, add more value to the book with 2.2 BTW – the book rocks.. 8-) |
|
Sep 4, 2008
Christopher ...
1 post
|
Topic: RubyCocoa / Controllers and Cocoa Rather than defining pure Ruby controller classes, the book should show how to leverage the Cocoa controller classes. For example, the Similarly, presenting the log via a “tree-structured view” — which on Mac OS X is called an outline view — should be done using an Cocoa is not Rails, it’s a distinct framework with its own architecture. Developers, especially those just learning the framework, need to learn to follow the architecture provided by Cocoa to both get the best experience developing with it and take the best advantage of the framework’s features. |
|
Sep 4, 2008
Allen Walker
18 posts
|
Topic: Developing Facebook Platform Applications with Rails / fb_comments not working I have tried both specifying a callback and not, neither works. Apparently when the user clicks post it is not posting to the comments tag properly. Anyway here’s my code: <%=fb_comments(“comments_for_comment_lesson”, true, true, 20,:showform => true, :title => “Comment Lesson Comments”) %> Straight from the facebooker_tutorial just to try to get it to work. |
|
Sep 4, 2008
Don Albertson
3 posts
|
Topic: Mastering Dojo / dojo data chapter examples not working This chapter needed a Q/A team to validate it. So far, with 2 titles that I’ve purchased I’m deeply disappointed in the Pragmatic series. Neither one would qualify as a shippable product. |
|
Sep 4, 2008
Daniel Wiesmann
1 post
|
Topic: Agile Web Development with Rails, 3rd Edition / Rails 2.2 features in this book +1 on 2.2 coverage. |
|
Sep 4, 2008
Tan YL
17 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / highlight effect lol i solved it u wouldn’t believe how stupid the answer is. i have to make a 2nd @lineprice2 = SglineItem.find(:all, :conditions => “sguser_id =#{params[:ad]}”) after the if loop because the @lineprice is still referencing the old object which had the old list. i knew it wasn’t anything to do with the rjs. thanks for your help sam |
|
Sep 4, 2008
Tan YL
17 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / highlight effect sgpanel.html.erb: < ul class=”panes” id=”panecontrol1”> < div id=”calculator”>
_add_to_cart.html.erb:
add_to_cart contains the full replacement but the weird thing is that i need to refresh the whole page to see the new product. It just doesn’t make sense. I am nearly doing the same things that u are doing in depot except using mysql instead of a session to store data |
|
Sep 4, 2008
Mike Bailey
1 post
|
Topic: Agile Web Development with Rails, 3rd Edition / Rails 2.2 features in this book I’d be happy to wait for 2.2 to be covered. |
|
Sep 4, 2008
Sam Ruby
175 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / highlight effect You certainly can replace the page in JS. Perhaps it is the formatting, and perhaps you haven’t provided enough information. Your rjs file has two lines. The first refers to an id named ‘calculated’ and a partial named ‘add_to_cart’. I can find neither in the text you have provided. Take a look at your HTML, and make sure that the element with the id named ‘calculated’ includes the portions of the table you want replaced, and that the partial named ‘add_to_cart’ contains a full and suitable replacement. Once that is in place, the second line should have no problem. |
|
Sep 4, 2008
Steinar Gísl...
1 post
|
Topic: Erlang in Practice / How do I get EUnit? Has anyone had trouble using Eunit on Windows? /test_fizzbuzz.erl:none: error in parse transform ‘eunit_autoexport’: {undef, [{eunit_autoexport, parse_transform, .... etc. when running c(test_fizzbuzz) in the erlang shell. The error appeaers when I add the line: I am not suburb at reading erlang error messages, so if anyone can point me to the right direction it would be appreciated. |
|
Sep 4, 2008
Tan YL
17 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / highlight effect “Or it can send down Javascript instructions which causes either the attribute itself or even an entire row to be inserted into the DOM.” wait how come in your example its possible to add a new line to the table but in mine i can’t pass a new row in? aren’t we doing essentially the same taking replacing the page with a totally new page and allowing the for loop to get all the objects inside? |
|
Sep 3, 2008
Antonio Subi...
5 posts
|
Topic: Hello, Android / Update Thanks for the quick update, Ed! |
|
Sep 3, 2008
Ira Davis
2 posts
|
Topic: The Ruby Object Model and Metaprogramming / An idea for a future installment Do you suppose you could cover the metadata for an object? That is if Ruby exposes this. I’ve really enjoyed the series and I think it has helped my understanding of object orientation in general and certainly helped my understanding or Ruby. |
|
Sep 3, 2008
Yvan Cottyn
1 post
|
Topic: Agile Web Development with Rails, 3rd Edition / Rails 2.2 features in this book I wouldn’t mind neither to wait a little longer for the printed copy if 2.2 were covered. |
|
Sep 3, 2008
Sam Ruby
175 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / highlight effect Good analysis, but wrong conclusion. Permit me to explain. The data is being saved to the database fast enough. In fact it is saved right when you ask it too. But if you look at your controller, the next thing you do is respond with javascript. That javascript will tell the client how to highlight a field that has a certain id attribute on it, but at no point in this processing does the server actually return an updated page to the client with the new attribute or line in it. This can be done in a number of ways. Each require manipulating the DOM. The server can send down a partial, if there is JavaScript code on the client that “catches” this and knows where to insert it. Or it can send down Javascript instructions which causes either the attribute itself or even an entire row to be inserted into the DOM. But at this point, we are going beyond Rails. Rails, of course, will be happy to deliver the partial or the JavaScript, but learning more about Prototype and script.aculo.us may be helpful before tackling this problem. I’m not an expert on those technologies myself – I learned how to do these tasks with raw JavaScript and get by with that knowledge—an approach I wouldn’t recommend to anyone these days. |
3329 posts
