#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9
Top Prev 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 Next
#rubyonrails
<jstew> or something of that nature
<BucWheat> pstickne i'm going to try that now
<pstickne> BucWheat, why not? You can do anything you want with AJAX; it's just a name given to using XHR with JS to send data to the server and get it back
<pstickne> BucWheat, the client JS that starts the connection can do anything it wants from static updates to full eval to custom parsing
<BucWheat> pstickne so basically. i'm going to have ajax observe header links and when clicked update <tr>
<pstickne> Prototype supports eval'ing stuff read back in <script> tags.... or you could tell it to just eval everything (which is generally how RJS works)
<pstickne> BucWheat, sure
<pstickne> BucWheat, but it might be easiest to update the entire <tbody>
<pstickne> but then some would argue that the correct way is to do DOM manipulation....
<pstickne> hmm. it would be neat if the DOM specification included transactions.
<pstickne> BucWheat, although you might want to look at remote_function/link_to_remote...
<tavilach> ok so jstew, what i have now isnt working and im getting confused, here what i have
<tavilach> in my list i have:
<tavilach> <%= render :partial => 'joke_item', :locals => {:joke => joke} %>
<tavilach> and then in my _joke_item i have:
<tavilach> <h1>Editing joke <% joke.id %></h1>
<tavilach> <% form_tag :action => 'update', :joke => joke do %>
<tavilach> <%= render :partial => 'form' %>
<tavilach> <%= submit_tag 'Edit' %>
<tavilach> <% end %>
<tavilach> <%= link_to 'Show', :action => 'show', :id => id %> |
<tavilach> <%= link_to 'Back', :action => 'list' %>
<BucWheat> pstickne ok.
<halorgium> tavilach: pastie it
<argv[]> ew.
<BucWheat> tavilach paste links not code
<pstickne> "isn't working" is too vauge. and posting to a chat room is poor netiquette
<argv[]> paste love not war
<locellcount> ok, installed postfix and sent an email via telnet (how open to abuse is that, being able to send emails from anyone? mad) so how do I send from rails? Just use localhost as the server name?
<tavilach> sorry
<tavilach> ill figure it out myself nevermind
<pstickne> locellcount, well, ideally you'd limit which hosts you'd accept emails from or forward them to...
<locellcount> no, I meant abused by me :)
<pstickne> (and localhost is likely defaultly allowed)
<jstew> well tavilach can you pastie your page and the errors?
<pstickne> locellcount, that's not much of an abuse :(
<tavilach> http://pastie.caboo.se/41297
<tavilach> sorry i dint know about pastie
<locellcount> pstickne: you mean sending people emails from god isn't abuse? ;) Oh the temptation
<bongoman> tavilach: try :id => joke
<pstickne> locellcount, send me one. I need all the help I can get O.o
<bongoman> tavilach: not :id => id
<jstew> as long as nobody out side of your network can send those emails from god then youre good to go
<pstickne> locellcount, but really, you could do that from any open mailer... ^^
<jstew> just make sure that my_newtorks is 127.0.0.1 or your ip address :)
<locellcount> jstew: looking for that now :)
<tavilach> im really confused about
<tavilach> :joke vs. :id
<tavilach> and joke vs. id
<pstickne> :I_am_a_symbol
Previous Page Next Page