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
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,
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
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
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
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
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,
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
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
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
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 |
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
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
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
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
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
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/.
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 %=
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
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
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
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
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
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
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
25 matches
Mail list logo