# Help with iPhone

**URL:** <https://www.ruby-forum.com/t/help-with-iphone/168172>\
**Category:** Rails\
**Created:** [May 17, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/help-with-iphone/168172 "2009-05-17T16:46:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [May 17, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/help-with-iphone/168172/1 "2009-05-17T16:46:12Z")

</div>

I need some help with iPhone. I use iui but I don’t understand the  
basics. It seems that I can’t do a simple update of a post using Ajax.  
Is that done for you?

What if I want to delete a post in the db, from a “show” view. How do I  
write the delete link and the method? How do I get back to the view I  
want after that.

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [May 17, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/help-with-iphone/168172/2 "2009-05-17T17:45:50Z")

</div>

PÃ¥l BergstrÃ¶m wrote:

> I need some help with iPhone. I use iui but I don’t understand the  
> basics. It seems that I can’t do a simple update of a post using Ajax.  
> Is that done for you?
> 
> What if I want to delete a post in the db, from a “show” view. How do I  
> write the delete link and the method? How do I get back to the view I  
> want after that.

Got it working using a normal link\_to and target \_replace. But I the  
“backButton” has the wrong innerHTML and href. How can I change that?  
Can I add some variables to the link\_to?
