Senior & Expert RoR Developers Discussion Forum by Nyros Technologies

HIRE Ruby on Rails Expert Developers Programmers Coders From India
Ruby on Rails PHP .Net Developers Community, Nyros Technologies, Kakinada
 
Log in  or IF not a member please REGISTER
Username:
Password:   


Keyword
Log in | Profile 

Search found 131 matches
Senior & Expert RoR Developers Discussion Forum by Nyros Technologies Index
Author Message
  Topic: acts_as_list usage
s.nagesh

Replies: 0
Views: 41

PostAdvanced programming   Posted: Thu Jul 01, 2010 9:15 am   Subject: acts_as_list usage
Hi all,

acts_as_list is one of the predefined function available in active Record. It will Gives child data lists-like behavior.

Parent will be able to traverse child data, move it around and ...
  Topic: Converting strng into date
s.nagesh

Replies: 1
Views: 30

PostA little Ruby programming (Basic programming in RoR)   Posted: Thu Jul 01, 2010 3:03 am   Subject: Converting strng into date
Using Date.parse method you can convert string into date format.

syntax :

require 'date'

Date.parse ("21-july-2010")
  Topic: singleton methods and singleton class
s.nagesh

Replies: 0
Views: 70

PostA little Ruby programming (Basic programming in RoR)   Posted: Thu Jun 24, 2010 12:24 pm   Subject: singleton methods and singleton class
Hi,

The methods are which are in singleton class is called singleton methods. The singleton class is also called as object-specific classes, anonymous classes, and virtual classes. Mostly it is c ...
  Topic: finding Cartesian product in Ruby
s.nagesh

Replies: 0
Views: 70

PostAdvanced programming   Posted: Tue Jun 22, 2010 4:29 am   Subject: finding Cartesian product in Ruby
Hi,

By using the following code we can generate Cartesian product of 2 arrays.



def cartesian(*args)
final_output= [[]]
...
  Topic: 1+N problem with associations
s.nagesh

Replies: 0
Views: 52

PostAdvanced programming   Posted: Tue Jun 22, 2010 3:12 am   Subject: 1+N problem with associations
Hi ,

While using associations will reduce lot of code and we can prevent the writing database related queries in views. But while using associations we will have a problem called 1+N. The associ ...
  Topic: Writing conditions in callbacks
s.nagesh

Replies: 1
Views: 57

PostAdvanced programming   Posted: Mon Jun 21, 2010 6:51 am   Subject: Writing conditions in callbacks
You can write like this

before_save :update_information, :if => :enabled, :unless => "<some condition>"

Thanks
  Topic: "Having" attribute in find method
s.nagesh

Replies: 0
Views: 64

PostAdvanced programming   Posted: Mon Jun 21, 2010 6:48 am   Subject: "Having" attribute in find method
Hello,

Rails provided another option called "having" on find method. we can also write this in "has_many" and has_and_belongs_to_many associations for filtering data in groupe ...
  Topic: Proc and lambda blocks in ruby
s.nagesh

Replies: 0
Views: 79

PostA little Ruby programming (Basic programming in RoR)   Posted: Thu Jun 17, 2010 1:21 pm   Subject: Proc and lambda blocks in ruby
Hi,

Proc and Lambda are 2 code blocks in ruby which are used to write number of statements.

A Proc is a code block that has been bound to a set of local variables. Once bound, the code block ...
  Topic: Named scope use in ruby
s.nagesh

Replies: 0
Views: 91

PostAdvanced programming   Posted: Thu Jun 17, 2010 10:41 am   Subject: Named scope use in ruby
Hi,

By using named_scope we can get the data very easily and it will reduce the lot of code. named_scope adds a class method for retrieving and querying objects. A scope represents a narrowing of ...
  Topic: Difference between collection and member
s.nagesh

Replies: 1
Views: 107

PostA little Ruby programming (Basic programming in RoR)   Posted: Thu Jun 17, 2010 4:06 am   Subject: Difference between collection and member
Hi,

The resources method accepts the following options to customize the resulting routes:



1) :collection - Add named routes for other actions that operate on the collection. Takes ...
  Topic: Single Table Inheritance
s.nagesh

Replies: 0
Views: 109

PostAdvanced programming   Posted: Wed Jun 16, 2010 9:45 am   Subject: Single Table Inheritance
Hi All,

While we are writing the code will use inheritance to express the relationships between abstractions. In some cases we need a situation like

For example Users can have various rol ...
  Topic: Variation of declaring data types in various database
s.nagesh

Replies: 3
Views: 106

PostRails Database setup   Posted: Tue Jun 15, 2010 12:17 pm   Subject: Variation of declaring data types in various database
Here is the datatypes for remaining database


Type DB2 mysql openbase oracle
------------------------------------------------------------------------- ...
  Topic: Eval solved the problem of dynamic appending
s.nagesh

Replies: 0
Views: 57

PostA little Ruby programming (Basic programming in RoR)   Posted: Tue Jun 15, 2010 11:58 am   Subject: Eval solved the problem of dynamic appending
Hi,

While embedding a value to the datbase column name it will throws an error. i tried to append it by using #{} and +. nothing will hep. But when i used eval the problem is solved. i am succ ...
  Topic: Variation of declaring data types in various database
s.nagesh

Replies: 3
Views: 106

PostRails Database setup   Posted: Tue Jun 15, 2010 10:32 am   Subject: Variation of declaring data types in various database
Hi to all,

Based on my previous experience i collected some of the datatypes declaration in some databases. Because while executing rake db:migrate many times i have faced few problems due to d ...
  Topic: hide_action tag use
s.nagesh

Replies: 0
Views: 72

PostA little Ruby programming (Basic programming in RoR)   Posted: Mon Jun 14, 2010 7:39 am   Subject: hide_action tag use
Hi all,

To Hide the some action in controller we will use this tag.

In some cases we will write a method in a controller but if we don’t want it to be accessible as an action to the public, we w ...
 
Page 1 of 9 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
All times are GMT
Jump to:  

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts validates_multiparameter_assignments plugin usage:
0 vijayalakshmi 27 Wed Jul 28, 2010 4:24 am
vijayalakshmi View latest post
No new posts paperclip plugin usage in rails:
0 vijayalakshmi 23 Wed Jul 28, 2010 4:07 am
vijayalakshmi View latest post
No new posts Polymorphism
1 phani.galla 46 Tue Jul 27, 2010 3:27 pm
umamahesh_nyros View latest post
No new posts Deploying Ruby on Rails Application with Passenger
2 sivakrishna.m 630 Tue Jul 27, 2010 2:16 pm
criether View latest post
No new posts Steps to implement star-rating using acts_as_rateable plugin
0 vijayalakshmi 46 Mon Jul 26, 2010 5:47 am
vijayalakshmi View latest post
No new posts Twitter Retweet Integartion
0 Anu 41 Thu Jul 22, 2010 12:27 pm
Anu View latest post
No new posts Usage of build method in rails
0 ktulasi 30 Thu Jul 22, 2010 12:19 pm
ktulasi View latest post
No new posts Facebook Like Integration in Rails
0 Anu 53 Thu Jul 22, 2010 12:16 pm
Anu View latest post
No new posts Fshare in your Rails Application.
0 Anu 39 Thu Jul 22, 2010 12:10 pm
Anu View latest post
No new posts Installation of Postgresql in windows.
1 swaminadhan 198 Thu Jul 15, 2010 10:17 am
proximity3 View latest post




Hire an expert Ruby on Rails developer / coder / programmer or development team from India now!!

Other Forums : PHP   ::   .Net   |   Free unlimited HTML CSS templates download

Nyros Technologies   |   Kakinada City Portal   |   Developers Blog   |   About Ruby on Rails Experts   |   More