[Rails] direct to same page

2008-11-09 Thread xxmithila
Hi guys I want to drict again same page after submitting values to another methode in the controller. ex:: Im in post.rhtml I submit some data to methode def mail end then I want to direct again to post.rhtml page with submission success message. please help

[Rails] Re: Rails requires RubyGems = 1.1.1 : problem

2008-11-09 Thread Thomas Balthazar
Hello Rick, Thanks for your help. I already have this line in my environment.conf RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION. But I still get the same Rails requires RubyGems = 1.1.1 (you have 1.0.1). Please `gem update --system` and try again. error. Thomas. On Sat, Nov 8,

[Rails] Re: Rails requires RubyGems = 1.1.1 : problem

2008-11-09 Thread Thomas Balthazar
Hello Freddy, Thanks for your guess, but I compiled ruby manually, following Dan Benjamin's instructions found here : http://danbenjamin.com/articles/2008/02/ruby-rails-leopard Thomas. On Sat, Nov 8, 2008 at 11:18 PM, Freddy Andersen [EMAIL PROTECTED]wrote: Just a wild guess but you have

[Rails] where to submit rails articles

2008-11-09 Thread Lost Warrior
hi to everyone where to submit rails articles -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ 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

[Rails] Re: paperclip not working on update action (rails 2.1)

2008-11-09 Thread David Beckwith
I have form_for (@user, :html = {:multipart = true}) do |f| and paperclip not working. I noticed: Parameters: {user={profile_pic=#File:/tmp/CGI.1316.5 It seems to be uploading to /tmp, but it doesn't get copied over to RAILS_ROOT/public/profile_pic like I'm expecting it to. Does anybody

[Rails] Wildcard URL redirect via Rails Routes?

2008-11-09 Thread Marston A.
Hey all, I wanted to know if I can (and if it's a good idea) to redirect old routes to other controllers/actions. In a previous version we had some routes like so /public/username/some/other/variables. What would I need to do in my routes.rb file to make /public/username/ * redirect to

[Rails] Re: Rails requires RubyGems = 1.1.1 : problem

2008-11-09 Thread Rick
ok, So the Rails requires... message is comming from .../gems/1.8/gems/ rails-2.1.2/environments/boot.rb which will also force a load from vendor/rails if you have one. Did you freeze rails into your app by any chance? Rick On Nov 6, 11:43 pm, Thomas Balthazar [EMAIL PROTECTED] wrote: Hello,

[Rails] Re: Strange dependency error after going Ruby1.8.6, Rails 2.1.0 - Ruby1.8.7, Rails 2.1.2

2008-11-09 Thread Java
Ah, sorry, that was a little quick. Actually the bug is caused by the resource_controller plugin. My bad. I posted a report in the resource_controller group. regards Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] config error

2008-11-09 Thread Bert Ameche
I just started developing a social network using the RailsSpace book. The books instruction is to change the url to be http://localhost:3000 instead of http://localhost:3000/site. To do this, I changed the config/routes.rb file's map.connect to be map.connect '', :controller = site and then

[Rails] Re: Conditinal layout based on controller action.

2008-11-09 Thread Bill Walton
Hi Jason, [EMAIL PROTECTED] wrote: What im trying to do i my views is show a back to links link in every view except the index view. Im trying to keep it DRY and use some conditional statment in the application.html.erb. I think the helper you're looking for is link_to_unless_current, but

[Rails] problem : no such file to load -- sqlite3

2008-11-09 Thread vlad
i followed a tutorial/course and it didn't work so i copied the source files from it and it still doesn't work http://www.jhl.it/Courses/LUGPC10.html MissingSourceFile in UsersController#index no such file to load -- sqlite3 RAILS_ROOT: C:/courses/LUGPC10/WebAlbum Application Trace |

[Rails] Re: before_filter to restrict user from editing locked item

2008-11-09 Thread Scott Kulik
Frederick Cheung wrote: On 9 Nov 2008, at 20:19, Scott Kulik wrote: end Well you can't pass an argument to a filter like that. you'd have to fetch the item first (I presume this is all boilerplate stuff so you're interested in the one of id params[:id]. Also, returning false from a

[Rails] `const_missing':NameError: uninitialized constant {const_id}

2008-11-09 Thread Thani Ararsu
magic_multi_connection-1.2.1 -error when i start console i got this error C:/ruby/lib/ruby/gems/1.8/gems/magic_multi_connections-1.2.1/lib/magic_multi_connections/connected.rb:20:in `const_missing':NameError: uninitialized constant {const_id} any idea ? -- Posted via

[Rails] Re: scaffold not working like i hoped......

2008-11-09 Thread Rick
Did you run rake db:migrate? Rick On Nov 8, 9:18 am, SpudNerd [EMAIL PROTECTED] wrote: Hi: i've tried this on three macs (tiger, panther, etc).. and my ROR is up to date on each. My models and controllers aren't displaying all my mysql db fields. When I run script/generate scaffold

[Rails] Re: [sort of off topic] BDD with Javascript

2008-11-09 Thread s.ross
Hello-- On Nov 8, 2008, at 7:42 AM, Pau Cor wrote: I know this is a little off topic, but Rails is pretty much the only place I use JavaScript at the moment, so I'm guessing that does come into the equation a little bit. I have learned to get quite a lot of the prototype. I choose

[Rails] Re: How do ASP Response.Write in RoR?

2008-11-09 Thread Frederick Cheung
On 9 Nov 2008, at 17:24, Norm wrote: Frederick Cheung wrote: On 8 Nov 2008, at 19:57, Peter Alvin [EMAIL PROTECTED] s.net wrote: With Microsnot technology you an do this: % Response.Write Hello, World % %= hello world % Fred How do you output text to the browser with Ruby? Pete

[Rails] code to allow only friends.

2008-11-09 Thread Santosh Turamari
I have an app in which, I have profiles which has friends list.. I want to apply some privacy settings as to allow, to visit only their friends in network..How to write the code in controller.. can anybody pls explain me.. I am new to ror. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: How do ASP Response.Write in RoR?

2008-11-09 Thread gaveeno
one quick note... %= % is what you use to executed embedded ruby code and then display the output in your view. % % (no equals sign) is what you use to just execute ruby code without displaying the output in your view. so you could do something like: % 3.times do % Hello %=

[Rails] Re: config error

2008-11-09 Thread Bert Ameche
I figured out my dumb error - forgot to put end after the map.connect statement. Sorry about posting this. Bert Ameche wrote: I just started developing a social network using the RailsSpace book. The books instruction is to change the url to be http://localhost:3000 instead of

[Rails] Re: scaffold not working like i hoped......

2008-11-09 Thread Chris Ripley
Yes.. i've run rake db:migrate. On Sun, Nov 9, 2008 at 11:48 AM, Rick [EMAIL PROTECTED] wrote: Did you run rake db:migrate? Rick On Nov 8, 9:18 am, SpudNerd [EMAIL PROTECTED] wrote: Hi: i've tried this on three macs (tiger, panther, etc).. and my ROR is up to date on each. My

[Rails] Re: direct to same page

2008-11-09 Thread Bill Walton
Hi, xxmithila I want to drict again same page after submitting values to another methode in the controller. redirect_to :back should do it for you. HTH, Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Why is NFS insecure for storing open id sessions?

2008-11-09 Thread Ben Johnson
I am trying to set up openid in my application. I came across this plugin: http://github.com/rails/open_id_authentication/tree/master In there it says: Alternatively, you can use the file-based store, which just relies on tmp/openids being present in RAILS_ROOT. But be aware that this store

[Rails] Book Recommendation for fast drop into webdesign

2008-11-09 Thread Jeffrey Goines
hello, I did some web design quite a while ago and now i have some time to get back into it but i want it as fast as possible and what i'm really lacking is some good resource how to restart. it's like that i need the general html design patterns plus css in an accesible way. then i want to go

[Rails] before_filter to restrict user from editing locked item

2008-11-09 Thread Scott Kulik
I have a list of items in which some are locked. if they are locked then I want to make them not be able to be edited. how can i set up something like this: before_filter :locked?(item), :only = [:edit, :update] def locked?(item) if item.locked then return false end or how should i

[Rails] Re: Book Recommendation for fast drop into webdesign

2008-11-09 Thread Mohit Sindhwani
Jeffrey Goines wrote: hello, I did some web design quite a while ago and now i have some time to get back into it but i want it as fast as possible and what i'm really lacking is some good resource how to restart. it's like that i need the general html design patterns plus css in an