Hi Abhishek
You could override the rails defaults of autoincrementing with following
create_table(table_name,:id => false) do |t|
t.integer :id,:options => 'PRIMARY KEY'
end
Force fully in your controller you should pass the value to :id .
Hope this helps ,
Sr
:port => 26,
:domain => "www.your-domain.com",
:authentication => :login,
:user_name => "your_user_name",
:password => "your_password"
}
Regards,
Srinivas Iyer
http://talkonsomething.com
On Thu, Nov 19, 2009 at 10:08 PM, Darian Shimy wro
> uri.host
=> "google.com"
There are many other different options which you can explore
http://addressable.rubyforge.org/api/classes/Addressable/URI.html
Hope this helps !
Best regards,
Srinivas Iyer
http://talkonsomething.com
http://twitter.com/srinivasiy
Good way to Start is trying it to learn on online Regular Expression Editor
http://rubular.com
On 11/12/09, Abhishek shukla wrote:
> Hello Friends,
> I need to write a regular expression which will extract and return the
> domain name.
>
> for example
> if a user parse any of the below
aibow-Koser <
rails-mailing-l...@andreas-s.net> wrote:
>
> Srinivas Iyer wrote:
> > Hi all ,
> >
> > I have a small doubt , Can we call a php function in Rails . Is there
> > any
> > Interpreter or a Bridge in which Rails application can talk to a Php
>
Hi all ,
I have a small doubt , Can we call a php function in Rails . Is there any
Interpreter or a Bridge in which Rails application can talk to a Php File
and call a specific method from php file . Thanks in Advance
--~--~-~--~~~---~--~~
You received this m
6 matches
Mail list logo